Solr
  1. Solr
  2. SOLR-1968

speed up initial cache population for facet.method=enum

    Details

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

      Description

      Seeking with a term enumerator is expensive... we should reuse the enum to generate the cached doc set when possible.

      1. SOLR-1968.patch
        9 kB
        Yonik Seeley

        Activity

        Hide
        Yonik Seeley added a comment -

        Patch attached.

        unique terms in field trunk first-time facet in ms patch first-time facet in ms speedup
        100000 24776 761 32.6x
        10000 2791 358 7.8x
        1000 583 293 2.0x
        100 329 260 1.3x
        10 195 156 1.3x

        Given the nice speedups, I plan on committing shortly.

        Show
        Yonik Seeley added a comment - Patch attached. unique terms in field trunk first-time facet in ms patch first-time facet in ms speedup 100000 24776 761 32.6x 10000 2791 358 7.8x 1000 583 293 2.0x 100 329 260 1.3x 10 195 156 1.3x Given the nice speedups, I plan on committing shortly.
        Hide
        Yonik Seeley added a comment -

        committed.

        Show
        Yonik Seeley added a comment - committed.
        Hide
        Yonik Seeley added a comment -

        Also backported to branch_3x and committed.

        Show
        Yonik Seeley added a comment - Also backported to branch_3x and committed.
        Hide
        Grant Ingersoll added a comment -

        Bulk close for 3.1.0 release

        Show
        Grant Ingersoll added a comment - Bulk close for 3.1.0 release

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development