Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-1997

Explore performance of multi-PQ vs single-PQ sorting API

Details

    • Improvement
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 2.9
    • None
    • core/search
    • None
    • New

    Description

      Spinoff from recent "lucene 2.9 sorting algorithm" thread on java-dev,
      where a simpler (non-segment-based) comparator API is proposed that
      gathers results into multiple PQs (one per segment) and then merges
      them in the end.

      I started from John's multi-PQ code and worked it into
      contrib/benchmark so that we could run perf tests. Then I generified
      the Python script I use for running search benchmarks (in
      contrib/benchmark/sortBench.py).

      The script first creates indexes with 1M docs (based on
      SortableSingleDocSource, and based on wikipedia, if available). Then
      it runs various combinations:

      • Index with 20 balanced segments vs index with the "normal" log
        segment size
      • Queries with different numbers of hits (only for wikipedia index)
      • Different top N
      • Different sorts (by title, for wikipedia, and by random string,
        random int, and country for the random index)

      For each test, 7 search rounds are run and the best QPS is kept. The
      script runs singlePQ then multiPQ, and records the resulting best QPS
      for each and produces table (in Jira format) as output.

      Attachments

        1. LUCENE-1997.patch
          39 kB
          Michael McCandless
        2. LUCENE-1997.patch
          40 kB
          Michael McCandless
        3. LUCENE-1997.patch
          45 kB
          Michael McCandless
        4. LUCENE-1997.patch
          45 kB
          Michael McCandless
        5. LUCENE-1997.patch
          46 kB
          Michael McCandless
        6. LUCENE-1997.patch
          46 kB
          Michael McCandless
        7. LUCENE-1997.patch
          48 kB
          Michael McCandless
        8. LUCENE-1997.patch
          49 kB
          Michael McCandless
        9. LUCENE-1997.patch
          59 kB
          Michael McCandless

        Activity

          People

            mikemccand Michael McCandless
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: