MySQL Forums
Forum List  »  Optimizer & Parser

Re: optimize request with order by and limit
Posted by: Rick James
Date: July 26, 2013 11:53PM

You have about 151048 rows with trkenv.EnvID IN ( 1,1,20 ) ?
Sounds like the performance cannot be solved without rearranging the fields in the tables.
The JOINs have to occur before the ORDER BY and LIMIT, so there is a lot of work that is subsequently thrown away.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: optimize request with order by and limit
1245
July 26, 2013 11:53PM


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.