Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
We can utilize information about the number of rows to be retrieved to
a) optimize any sorting imposed by the ORDER BY by keeping only the top <next> rows in memory,
b) inform the optimizer with more precise information about the number of rows in those cases where such a constrict is a join participant.
For b) this would only work if <next> were known statically at compile time. For a) this could work even with ? parameters,
Attachments
Issue Links
- relates to
-
DERBY-4675 OFFSET/FETCH SYNTAX EFFICIENCY
- Open