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

Performance issue when using group.facet=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2
    • 6.4, 7.0
    • None
    • 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
          Steven Rowe
        2. SOLR-4763.patch
          7 kB
          Hua Jiang
        3. SOLR-4763.patch
          8 kB
          Hua Jiang

        Issue Links

          Activity

            People

              erickerickson Erick Erickson
              anti_social Alexander Koval
              Votes:
              11 Vote for this issue
              Watchers:
              29 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: