MySQL Forums
Forum List  »  Performance

Re: MAX performance degrades
Posted by: Harrison Fisk
Date: March 11, 2005 02:07PM

Hi,

If you create a combined index on (C3, C4, C2) then it should be able to resolve the MAX using only the index. Indexes don't give a constant time, but it will only degrade slowly (if you even notice it) compared to the linear degrade you noticed before.

If that still doesn't help, please post the output of your EXPLAIN statement both with the new index and without it.

Harrison Fisk, Trainer and Consultant
MySQL AB, www.mysql.com

Options: ReplyQuote


Subject
Views
Written By
Posted
4665
March 11, 2005 05:01AM
Re: MAX performance degrades
2872
March 11, 2005 02:07PM


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.