MySQL Forums
Forum List  »  Performance

Re: Slower machine 100's of times faster??
Posted by: Jay Pipes
Date: December 26, 2005 08:32PM

David,

I'm responding to this particular post because, after going back (again and agin) to look over these posts, I think this is by far the best suggestion/solution you've given. I'm pretty certain that something between 4.1.14 and 5.0.16 has changed specifically in the InnoDB execution, because I simply cannot figure out why an identical query, run on identical schema, with almost identical data sets, would be *that* much different on the one box than the other.

In short, your suggestion to further limit the query with the timestamp column is certainly a good idea, especially with the table data growing at a decent clip.

If you wouldn't mind, try taking a look through the bug database for InnoDB stuff that is similar to your problem here. If you don't find one, perhaps it is worth putting together a reproducable test case and submitting a bug...

I know that InnoDB tables traditionally don't fare well on queries of this type:

SELECT MAX(some_indexed_col) FROM some_table;

whereas MyISAM tables *do* perform well for the above query. Reason: InnoDB indexes do not store the count/max of an index's records whereas MyISAM does. It might be worth converting a test database to MyISAM tables are running aquick test comparison to see if this InnoDB limitation is the cause of the problems...

Good luck, David!

Jay Pipes
Community Relations Manager, North America, MySQL Inc.

Got Cluster? http://www.mysql.com/cluster
Personal: http://jpipes.com

Options: ReplyQuote


Subject
Views
Written By
Posted
2197
December 09, 2005 11:45AM
1432
December 09, 2005 11:51AM
1502
December 09, 2005 11:53AM
1579
December 09, 2005 12:11PM
1365
December 09, 2005 12:12PM
1363
December 09, 2005 12:33PM
1392
December 10, 2005 10:50AM
1464
December 12, 2005 05:14AM
1394
December 13, 2005 03:16AM
1534
December 14, 2005 11:17PM
1497
December 16, 2005 11:46AM
Re: Slower machine 100's of times faster??
1422
December 26, 2005 08:32PM
1412
December 14, 2005 10:47PM
1426
December 23, 2005 12:29PM


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.