You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Adrien Grand (Jira)" <ji...@apache.org> on 2022/03/05 19:04:00 UTC

[jira] [Commented] (LUCENE-10120) Lazy initialize FixedBitSet in LRUQueryCache

    [ https://issues.apache.org/jira/browse/LUCENE-10120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17501803#comment-17501803 ] 

Adrien Grand commented on LUCENE-10120:
---------------------------------------

My intuition is that the only queries that end up matchin contiguous ranges of doc IDs should be very cheap, so maybe we should look into not caching these queries instead of improving FixedBitSet for contiguous ranges?

> Lazy initialize FixedBitSet in LRUQueryCache
> --------------------------------------------
>
>                 Key: LUCENE-10120
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10120
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>    Affects Versions: 9.0
>            Reporter: Lu Xugang
>            Priority: Major
>         Attachments: 1.png, LUCENE-10120.patch
>
>          Time Spent: 4h 20m
>  Remaining Estimate: 0h
>
> Basing on the implement of collecting docIds in DocsWithFieldSet, may be we could do similar way to cache docIdSet in *LRUQueryCache#cacheIntoBitSet(BulkScorer scorer, int maxDoc)* when docIdSet is density.
> In this way , we do not always init a huge FixedBitSet which sometime is not necessary when maxDoc is large
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org