Re: MySQL not using index when order by a datetime col?
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.
Subject
Views
Written By
Posted
9399
June 10, 2006 02:04AM
Re: MySQL not using index when order by a datetime col?
3736
June 12, 2006 08:56AM
3403
June 13, 2006 01:11PM
3588
June 13, 2006 01:26PM
3484
June 15, 2006 03:11AM
3565
June 15, 2006 06:41AM
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.