MySQL Forums
Forum List  »  Optimizer & Parser

Re: Follow up on "Query Execution Plan"
Posted by: Chris Slominski
Date: October 25, 2012 11:14AM

SELECT * FROM <table> force index for order by (primary) WHERE time <= <time> order by time desc limit 1

appears to make the optimizer always choose 'range' in the execution plan. This looks like a good solution to the problem. Although it may not always be the best plan, it appears to never be an awful choice as was sometimes seen with the 'index' plan.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Follow up on "Query Execution Plan"
1378
October 25, 2012 11:14AM


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.