[
https://issues.apache.org/jira/browse/SOLR-18693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18154055#comment-18154055
]
Pierre Salagnac commented on SOLR-18693:
----------------------------------------
That would be great [~epugh].
For this ticket, that's not really a bug, but more an improvement. So with or
without means a different configuration (once merged) for {{MMapDirectory}}.
Second point, my knowledge on Lucene is limited, but my understanding is this
improvement was initially motivated by vector search, so IO are more optimized
when the index is too large to fit in-memory. I don't know whether Solr orbit
supports vectors or just keywords, but I would naively say it requires a large
"enough" vector index for a difference to be visible.
> Opt-in MMapDirectory.setReadAdvice(ADVISE_BY_CONTEXT) via DirectoryFactory
> ---------------------------------------------------------------------------
>
> Key: SOLR-18693
> URL: https://issues.apache.org/jira/browse/SOLR-18693
> Project: Solr
> Issue Type: Improvement
> Reporter: Prithvi S
> Assignee: Pierre Salagnac
> Priority: Major
> Labels: pull-request-available
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Lucene 10.3+ (CHANGES https://github.com/apache/lucene/pull/15040) stopped
> setting read advice by default. Merge/flush
> and DataAccessHints are largely no-ops for madvise unless something calls
> MMapDirectory.setReadAdvice. Solr has no setReadAdvice usages today.
> Add an opt-in solrconfig/init param adviseByContext (default false) on
> StandardDirectoryFactory / MMapDirectoryFactory / NRTCachingDirectoryFactory.
> When enabled, unwrap FilterDirectory/NRTCachingDirectory and call
> setReadAdvice(ADVISE_BY_CONTEXT) if the delegate is an MMapDirectory.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]