Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4763

Performance issue when using group.facet=true

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2
    • Fix Version/s: 6.4, 7.0
    • Component/s: None
    • Labels:
      None

      Description

      I do not know whether this is bug or not. But calculating facets with group.facet=true is too slow.

      I have query that:

      "matches": 730597,
      "ngroups": 24024,
      

      1. All queries with group.facet=true:

      "QTime": 5171
      "facet": {
          "time": 4716
      

      2. Without group.facet:

      • First query:
        "QTime": 3284
        "facet": {
            "time": 3104
        
      • Next queries:
        "QTime": 230,
        "facet": {
            "time": 76
        

      So I think with group.facet=true Solr doesn't use cache to calculate facets.

      Is it possible to improve performance of facets when group.facet=true?

        Attachments

        1. SOLR-4763.patch
          6 kB
          Steve Rowe
        2. SOLR-4763.patch
          7 kB
          Hua Jiang
        3. SOLR-4763.patch
          8 kB
          Hua Jiang

          Issue Links

            Activity

              People

              • Assignee:
                erickerickson Erick Erickson
                Reporter:
                anti_social Alexander Koval
              • Votes:
                11 Vote for this issue
                Watchers:
                31 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: