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

Robert Muir commented on LUCENE-8833:
-------------------------------------

Another idea is to expose the option completely differently to make it easier 
for the search use-case, maybe such as {{IndexInput.warm()}}. MMapDirectory 
could call {{load()}} on relevant bytebuffers, NIOFSDirectory could do 
whatever, ByteBuffersDirectory could do nothing. Someone could use this in 
their IndexReaderWarmer to efficiently warm their index and reduce user latency.

> Allow subclasses of MMapDirecory to preload individual IndexInputs
> ------------------------------------------------------------------
>
>                 Key: LUCENE-8833
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8833
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Simon Willnauer
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> I think it's useful for subclasses to select the preload flag on a per index 
> input basis rather than all or nothing. Here is a patch that has an 
> overloaded protected openInput method. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to