Skip to content
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

Merged
merged 3 commits into from Dec 13, 2022

Conversation

danielmitterdorfer
Copy link
Member

@danielmitterdorfer danielmitterdorfer commented Dec 12, 2022

With this commit we sort all ids that are used in mget calls in
lexicographically ascending order. As the term dictionary (which is used to
lookup _id) is also sorted lexicographically, we minimize the number of
blocks that need to read, reducing page faults.

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.
@danielmitterdorfer danielmitterdorfer added >enhancement :Search/Search Search-related issues that do not fall into other categories v8.7.0 labels Dec 12, 2022
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Dec 12, 2022
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@elasticsearchmachine
Copy link
Collaborator

Hi @danielmitterdorfer, I've created a changelog YAML for you.

@rockdaboot
Copy link
Contributor

Why not label also with v8.6.1 ?

@javanna javanna requested a review from dnhatn December 12, 2022 09:57
@javanna
Copy link
Member

javanna commented Dec 12, 2022

heya @dnhatn I added you as a reviewer because I thought you have more context having recently done some work on mget performance.

@danielmitterdorfer
Copy link
Member Author

Why not label also with v8.6.1 ?

@rockdaboot this plugin will be released with 8.7.0, therefore this change can only be made available with 8.7.0 as well.

Copy link
Contributor

@rockdaboot rockdaboot left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @danielmitterdorfer

@danielmitterdorfer danielmitterdorfer merged commit cdfb93f into elastic:main Dec 13, 2022
@danielmitterdorfer danielmitterdorfer deleted the sort-ids branch December 13, 2022 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants