MySQL Forums
Forum List  »  Performance

Re: combined index ignored
Posted by: Daniel Blackhurst
Date: January 24, 2010 07:29AM

MYSQL 5.1.34, looked through the release notes for more recent versions and there wasn't anything that stood out. Is the innodb plug in worth using?

When the query runs thats causing disk I/O goes to around 20%wa. Far higher than the 2-5% it usually sits around. Load average on the server is also between 1 and 1.5 except for this query. CPU usage does rise although its mostly I/O.

I'll try use index on it as it chooses vehicle_id,date_time.

Is it normal for the indexes to take up more disk space than table space?

SELECT s.schema_name,t.table_name, CONCAT(IFNULL(ROUND(SUM(t.data_length)/1024/1024,2),0.00),"Mb") data_size,CONCAT(IFNULL(ROUND(SUM(t.index_length)/1024/1024,2),0.00),"Mb") index_size, t.ENGINE ENGINE, t.table_rows TABLE_ROWS,t.row_format TABLE_ROW_FORMAT,date(t.update_time) FROM INFORMATION_SCHEMA.SCHEMATA s LEFT JOIN INFORMATION_SCHEMA.TABLES t ON s.schema_name = t.table_schema WHERE s.schema_name not in ("mysql","information_schema") GROUP BY s.schema_name,t.table_name,TABLE_ROW_FORMAT,ENGINE ORDER BY TABLE_ROWS DESC,data_size DESC,index_size DESC;

seems to show huge index sizes.

Options: ReplyQuote


Subject
Views
Written By
Posted
3343
January 21, 2010 04:02PM
1508
January 22, 2010 09:47PM
1478
January 23, 2010 04:49AM
1533
January 23, 2010 01:23PM
1487
January 23, 2010 03:40PM
1690
January 24, 2010 01:05AM
Re: combined index ignored
1424
January 24, 2010 07:29AM
1522
January 24, 2010 03:40PM
1376
February 02, 2010 09:09AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.