Skip to content

Add option to force load term dict into memory#39741

Merged
s1monw merged 3 commits intoelastic:masterfrom
s1monw:force_load_term_dict
Mar 6, 2019
Merged

Add option to force load term dict into memory#39741
s1monw merged 3 commits intoelastic:masterfrom
s1monw:force_load_term_dict

Conversation

@s1monw
Copy link
Copy Markdown
Contributor

@s1monw s1monw commented Mar 6, 2019

Lucene added an optimization to leave the term dictionary on disk
for non-id like fields. This change happened very late in the release
processes such that it's better to have an escape hatch if certain
usecases are hurt by this optimization. This setting might be
removed in the future if it turns out to be unnecessary.

Lucene added an optimization to leave the term dictionary on disk
for non-id like fields. This change happend very late in the release
processes such that it's better to have an escape hatch if certain
usecases are hurt by this optimization. This setting might be
removed in the future if it turns out to be unnecessary.
@s1monw s1monw added >enhancement :Distributed/Store Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label. v7.0.0 v8.0.0 labels Mar 6, 2019
@s1monw s1monw requested a review from jpountz March 6, 2019 10:53
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed

Copy link
Copy Markdown
Contributor

@jpountz jpountz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to wrap slices as well because of compound files.

@s1monw s1monw requested a review from jpountz March 6, 2019 11:31
@s1monw s1monw merged commit 1617e30 into elastic:master Mar 6, 2019
@s1monw s1monw deleted the force_load_term_dict branch March 6, 2019 14:28
s1monw added a commit that referenced this pull request Mar 6, 2019
Lucene added an optimization to leave the term dictionary on disk
for non-id like fields. This change happened very late in the release
processes such that it's better to have an escape hatch if certain
use-cases are hurt by this optimization. This setting might be
removed in the future if it turns out to be unnecessary.
s1monw added a commit that referenced this pull request Mar 6, 2019
Lucene added an optimization to leave the term dictionary on disk
for non-id like fields. This change happened very late in the release
processes such that it's better to have an escape hatch if certain
use-cases are hurt by this optimization. This setting might be
removed in the future if it turns out to be unnecessary.
/**
* see {@link #FORCE_RAM_TERM_DICT} for details
*/
private static final class DeoptimizingIndexInput extends IndexInput {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clever!

We are trying to add per-field control here: https://issues.apache.org/jira/browse/LUCENE-8671

DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Nov 5, 2019
This temporary setting was introduced in elastic#39741 but has had no effect since it
was deprecated in elastic#42838. This commit removes this setting.
DaveCTurner added a commit that referenced this pull request Nov 6, 2019
This temporary setting was introduced in #39741 but has had no effect since it
was deprecated in #42838. This commit removes this setting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Store Issues around managing unopened Lucene indices. If it touches Store.java, this is a likely label. >enhancement v7.0.0-rc2 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants