MySQL Forums
Forum List  »  Optimizer & Parser

Re: Query Optimizer Problem - OrderBy - 5.0.51 to 5.5.27
Posted by: Rick James
Date: September 06, 2012 10:42PM

Your test case does not prove anything.
* Only 1 row
* Selecting the entire table
* etc.
Present a more realistic test so we can discuss it further.
Keep in mind that if you fetch only a small number of rows, the index may be used. If you fetch most of the table, it is likely to be faster to ignore the index and scan the entire table, even if it adds a "filesort".

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Query Optimizer Problem - OrderBy - 5.0.51 to 5.5.27
1161
September 06, 2012 10:42PM


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.