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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.4
    • Facet Module
    • 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
          14 kB
          Yonik Seeley
        2. SOLR-8222.patch
          16 kB
          Yonik Seeley
        3. SOLR-8222.patch
          18 kB
          Yonik Seeley

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: