lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <>
Subject [jira] [Commented] (SOLR-12366) Avoid SlowAtomicReader.getLiveDocs -- it's slow
Date Tue, 22 May 2018 05:20:00 GMT


David Smiley commented on SOLR-12366:

Updated the patch:
* replaced the implementation of SolrIndexSearcher.getFirstMatch to be in terms of lookupId
-- less to maintain and one fewer reference to the SlowCompositeReader (field "filterReader").
 Slightly faster probably.
* simplified getLiveDocsBits further
* renamed getLiveDocs to getLiveDocSet (thus changed a bunch of other files) but kept the
original and marked deprecated, to be removed in 8.0

> Avoid SlowAtomicReader.getLiveDocs -- it's slow
> -----------------------------------------------
>                 Key: SOLR-12366
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: search
>            Reporter: David Smiley
>            Assignee: David Smiley
>            Priority: Major
>         Attachments: SOLR-12366.patch, SOLR-12366.patch, SOLR-12366.patch, SOLR-12366.patch
> 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

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message