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

Michael McCandless commented on LUCENE-9388:
--------------------------------------------

Memory mapped IO is likely plenty fast, but there may indeed be some overhead 
versus the {{long[]}} that backs our typical live docs implementations?

Since live docs are mostly accessed forward only iterator style (like doc 
values), maybe switching the random access {{BitSet}} we use today to an 
iterator over bits is the first step?  We might also want to invert it 
(again!!), so the iterator's {{.next()}} advances to the next deleted doc, 
since for most indices more documents are live than not.

We should just try it and see :)

> Move live docs to disk?
> -----------------------
>
>                 Key: LUCENE-9388
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9388
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Priority: Minor
>
> Live docs are the last file format whose memory usage is a function of 
> maxDoc, let's look into moving them to disk?



--
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