Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6335

Improve performance of FETCH NEXT/OFFSET with ORDER BY

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • SQL
    • 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

          Activity

            People

              Unassigned Unassigned
              dagw Dag H. Wanvik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: