Lucene - Core
  1. Lucene - Core
  2. LUCENE-6456

Don't cache queries that are too large for the query cache

    Details

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

      Description

      We have a default query cache with a reasonable size: 32MB. However if you happen to have a large index (eg. 1B docs), this might be too small even to store a single cached filter. In such cases we should not even try to cache instead of generating cache entries and trashing them immediately.

        Activity

        Hide
        Adrien Grand added a comment -

        Here is a patch. It tries to ensure that you can cache at least 5 filters with the configured ram size of the cache.

        Show
        Adrien Grand added a comment - Here is a patch. It tries to ensure that you can cache at least 5 filters with the configured ram size of the cache.
        Hide
        Robert Muir added a comment -

        +1

        Show
        Robert Muir added a comment - +1
        Hide
        ASF subversion and git services added a comment -

        Commit 1676607 from Adrien Grand in branch 'dev/trunk'
        [ https://svn.apache.org/r1676607 ]

        LUCENE-6456: Do not cache queries that are too large for the query cache.

        Show
        ASF subversion and git services added a comment - Commit 1676607 from Adrien Grand in branch 'dev/trunk' [ https://svn.apache.org/r1676607 ] LUCENE-6456 : Do not cache queries that are too large for the query cache.
        Hide
        ASF subversion and git services added a comment -

        Commit 1676609 from Adrien Grand in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1676609 ]

        LUCENE-6456: Do not cache queries that are too large for the query cache.

        Show
        ASF subversion and git services added a comment - Commit 1676609 from Adrien Grand in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1676609 ] LUCENE-6456 : Do not cache queries that are too large for the query cache.
        Hide
        Anshum Gupta added a comment -

        Bulk close for 5.2.0.

        Show
        Anshum Gupta added a comment - Bulk close for 5.2.0.

          People

          • Assignee:
            Adrien Grand
            Reporter:
            Adrien Grand
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development