MySQL Forums
Forum List  »  Performance

Re: Why is ORDER BY ASC is slow but ORDER DESC is fast ? and how can i fix it ?
Posted by: Rick James
Date: October 09, 2015 10:34PM

I have not heard of a big site doing what you propose. However, it is feasible. In PHP (say) you could do the analysis and construct the query with (or without) the "hint".

I don't like it because it may bite you tomorrow. However, I don't have a better answer for today.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Why is ORDER BY ASC is slow but ORDER DESC is fast ? and how can i fix it ?
978
October 09, 2015 10:34PM


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.