MySQL Forums
Forum List  »  General

Re: 'Order by' clause not using indexes
Posted by: Jonathan Cochran
Date: January 17, 2005 08:22AM

MySQL will not always use the index if your query is grabbing more than 30% (this # varies) of the total data. I am not positive, but this looks like what is happening in your case. Try using a where clause (WHERE suma = ____ ORDER BY suma), then look at your explain and it should be using the suma index.

See this link for a better explanation.
http://forums.mysql.com/read.php?24,10738,10785#msg-10785

Options: ReplyQuote


Subject
Written By
Posted
Re: 'Order by' clause not using indexes
January 17, 2005 08:22AM


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.