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

Never cache GlobalOrdinalQuery

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.2, 8.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      GlobalOrdinalsQuery holds a possibly large bitset of global ordinals that can pollute the query cache because the size of the query is not accounted in the memory usage of the cache.
      Moreover two instances of this query must share the same top reader context to be considered equal so they are not the ideal candidate for segment level caching.

        Attachments

        1. LUCENE-8062.patch
          0.6 kB
          Jim Ferenczi
        2. LUCENE-8062.patch
          0.8 kB
          Jim Ferenczi

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jim.ferenczi Jim Ferenczi
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: