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

Avoid SlowAtomicReader.getLiveDocs -- it's slow

    XMLWordPrintableJSON

    Details

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

      Description

      SlowAtomicReader is of course slow, and it's getLiveDocs (based on MultiBits) is slow as it uses a binary search for each lookup.  There are various places in Solr that use SolrIndexSearcher.getSlowAtomicReader and then get the liveDocs.  Most of these places ought to work with SolrIndexSearcher's getLiveDocs method.

        Attachments

        1. SOLR-12366.patch
          10 kB
          David Smiley
        2. SOLR-12366.patch
          10 kB
          David Smiley
        3. SOLR-12366.patch
          11 kB
          David Smiley
        4. SOLR-12366.patch
          18 kB
          David Smiley

          Activity

            People

            • Assignee:
              dsmiley David Smiley
              Reporter:
              dsmiley David Smiley
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: