Solr
  1. Solr
  2. SOLR-1904

Use HashDocSet when random access is needed in faceting

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      When facet.method=enum and we have a minDf>0 (when we skip the filter cache), we iterate over documents for a term and call baseDocSet.exists(doc). We should ensure that this base doc set is fast for .exists(), so if it's a SortedIntSet, make a HashDocSet to use.

      1. SOLR-1904.patch
        1 kB
        Yonik Seeley

        Activity

        Hide
        Yonik Seeley added a comment -

        Attaching patch.
        A quick test reveals about a 35% speedup with a very large minDf.

        Show
        Yonik Seeley added a comment - Attaching patch. A quick test reveals about a 35% speedup with a very large minDf.

          People

          • Assignee:
            Unassigned
            Reporter:
            Yonik Seeley
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development