Details

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

      Description

      The query cache currently only caches on segments that are more than 3% of the total index size currently. Another good condition could be to require a minimum index size so that we don't end up caching on things like MemoryIndex.

        Activity

        Hide
        jpountz Adrien Grand added a comment -

        Here is a patch. It requires a minimum top-level index size of 10000 docs by default. This should help ensure we do not create unnecessary cache entries on small indices which don't really need caching anyway.

        Show
        jpountz Adrien Grand added a comment - Here is a patch. It requires a minimum top-level index size of 10000 docs by default. This should help ensure we do not create unnecessary cache entries on small indices which don't really need caching anyway.
        Hide
        rcmuir Robert Muir added a comment -

        +1

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

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

        LUCENE-6455: Require a minimum index size to enable query caching.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 1676608 from Adrien Grand in branch 'dev/trunk' [ https://svn.apache.org/r1676608 ] LUCENE-6455 : Require a minimum index size to enable query caching.
        Hide
        jira-bot ASF subversion and git services added a comment -

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

        LUCENE-6455: Require a minimum index size to enable query caching.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 1676610 from Adrien Grand in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1676610 ] LUCENE-6455 : Require a minimum index size to enable query caching.
        Hide
        anshumg Anshum Gupta added a comment -

        Bulk close for 5.2.0.

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development