Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8950

FieldComparators Should Not Maintain Implicit PQs

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      While doing some perf tests, I realised that FieldComparators inherently maintain implicit priority queues for maintaining the sorted order of documents for the given sort order. This is wasteful especially in the case of a multi feature sort order and a large number of hits requested.

       

      We should change this to have FieldComparators maintain only the top and bottom values, and use them as barriers to compare

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              atris Atri Sharma
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: