[
https://issues.apache.org/jira/browse/LUCENE-8833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16856781#comment-16856781
]
Simon Willnauer commented on LUCENE-8833:
-----------------------------------------
you are correct that's what elasticsearch does. Yet, FileSwitchDirectory had
many issues in the past and still has (I am working on one issue related to
[this|https://github.com/elastic/elasticsearch/pull/37140] and will open
another issue soon. Especially with the push of pending deletes down to
FSDirectory things became more tricky for FileSwitchDirectory especially. That
said I think these issue should be fixed and I will work on it it was more of a
trigger to look closer. I also wanted to make decisions if you preload or not
based on the IOContext down the road which FileSwitch would not be capable of
doing in this context. I hope this makes sense?
> 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]