avoid file sort for IN() ORDRE BY
Select .. From table
Where index_part_1=1
Order index_part_2 DESC
LIMIT 10
is ok, no filesort
but
Select .. From table
Where index_part_1 IN(1,2,3,4)
Order index_part_2 DESC
LIMIT 10
is sick :(
how can i avoid filesort?
having filesort means LIMIT can only be done at SortTime
Subject
Views
Written By
Posted
avoid file sort for IN() ORDRE BY
3346
January 24, 2005 01:27PM
2459
January 24, 2005 11:06PM
1953
January 30, 2005 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.