Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Instead of always choosing a query plan that does a point lookup, the optimizer may choose one that instead prevents an ORDER BY, but causes a range scan instead. It's better (in the absence of stats) to choose the point lookup plan and do the ORDER BY on the results than to do a range scan with a filter on each row.