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

Never cache GlobalOrdinalQuery

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 7.2, 8.0
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: