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

Optimize count-only faceting when there are many expected matches-per-ord

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4
    • Component/s: Facet Module
    • Labels:
      None

      Description

      This optimization for the JSON Facet API came up a few months ago on the mailing list (I think by Toke).
      Basically, if one expects many hits per bucket, use a temporary array to accumulate segment ords and map them all at the end to global ords. This saves redundant segOrd->globalOrd mappings at the cost of having to scan the temp array.

        Attachments

        1. SOLR-8222.patch
          18 kB
          Yonik Seeley
        2. SOLR-8222.patch
          16 kB
          Yonik Seeley
        3. SOLR-8222.patch
          14 kB
          Yonik Seeley

          Activity

            People

            • Assignee:
              yseeley@gmail.com Yonik Seeley
              Reporter:
              yseeley@gmail.com Yonik Seeley
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: