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

Adrien Grand commented on LUCENE-9741:
--------------------------------------

To be clear, I'm thinking of only updating the {{StoredFieldsReader}} API, the 
{{LeafReaderAPI}} could remain the same and {{CodecReader#document}} could be 
implemented by creating an iterator, advancing it to the desired doc, doing 
what it has to do, and then throwing away the iterator immediately to allow the 
JVM to garbage-collect memory that is needed for the internal state of the 
iterator.

> Add optimization for sequential access of stored fields
> -------------------------------------------------------
>
>                 Key: LUCENE-9741
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9741
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/index
>            Reporter: Nhat Nguyen
>            Assignee: Nhat Nguyen
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> If we are reading the stored-fields of document ids (25, 27, 28, 26, 99), and 
> doc-25 triggers the stored-fields reader to decompress a block containing 
> document ids [10-50], then we can tell the reader to read not only 25, but 
> 26, 27, and 28 to avoid decompressing that block multiple times.
> This issue proposes adding a new optimized instance of stored-fields reader 
> that allows users to select the preferred fetching range.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to