Re: Follow up on "Query Execution Plan"
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.
Subject
Views
Written By
Posted
2391
October 24, 2012 11:59AM
1179
October 25, 2012 06:15AM
Re: Follow up on "Query Execution Plan"
1355
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.