MySQL Forums
Forum List  »  MyISAM

Re: MySQL not using index when order by a datetime col?
Posted by: KimSeong Loh
Date: June 12, 2006 08:56AM

If there is no WHERE, MySQL tends to scan the whole table and then do a sort on the data, assuming a sequential read is faster than a random access read.
Just make sure that the sort_buffer is large enough to do the sorting in memory.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MySQL not using index when order by a datetime col?
3846
June 12, 2006 08:56AM


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.