apache / apache/lucene

Allow subclasses of MMapDirecory to preload individual IndexInputs [LUCENE-8833]

Open
#9,877 7 comments 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Major type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

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.

---
Migrated from [LUCENE-8833](https://issues.apache.org/jira/browse/LUCENE-8833) by Simon Willnauer (@s1monw), updated Aug 15 2019

Contributor guide

Open the contributing guide

Research direction

Start by reading MMapDirectory and its protected openInput entry point, then inspect how the preload flag is currently applied. Done means a subclass can select the preload flag for individual IndexInputs rather than applying one setting to all inputs.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.