New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access term dictionary more efficiently #92269
Conversation
With this commit we sort all ids that are used in `mget` calls in lexicographically ascending order. As the term dictionary is also sorted lexicographically, we minimize the number of blocks that need to read, reducing page faults.
Pinging @elastic/es-search (Team:Search) |
Hi @danielmitterdorfer, I've created a changelog YAML for you. |
Why not label also with |
heya @dnhatn I added you as a reviewer because I thought you have more context having recently done some work on mget performance. |
@rockdaboot this plugin will be released with 8.7.0, therefore this change can only be made available with 8.7.0 as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @danielmitterdorfer
With this commit we sort all ids that are used in
mget
calls inlexicographically ascending order. As the term dictionary (which is used to
lookup
_id
) is also sorted lexicographically, we minimize the number ofblocks that need to read, reducing page faults.