MySQL Forums
Forum List  »  Optimizer & Parser

Re: Why does this query filesort?
Posted by: KimSeong Loh
Date: August 01, 2006 11:14PM

Filesort only means it need to do a sorting, the sorting could be done in memory instead of file if the sort_buffer is big enough.

I guess sorting 4 rows is not going to take too much time if it is in memory.
The sequential read plus sorting will probably saves you more execution time (disk read) than doing a random read based on the index.

Options: ReplyQuote


Subject
Views
Written By
Posted
2735
July 27, 2006 12:05PM
Re: Why does this query filesort?
1816
August 01, 2006 11:14PM


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.