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

Revert "Remove shortcutTotalHitCount optimization (#89047)" #94159

Merged
merged 1 commit into from
Feb 27, 2023

Conversation

javanna
Copy link
Member

@javanna javanna commented Feb 27, 2023

This reverts commit 283f8ac in the 8.7 branch (#89047).

We have found a performance regression around executing search requests with size greater than zero that hold queries that can shortcut their total hit count, like term and match_all. The previous shortcut total hit count optimization done in ES was able to shortcut those while the top score docs collector in Lucene does not support that. This can be improved further on main but for 8.7 we are going the safe path of reverting and leaving things how they were.

@javanna javanna added >non-issue :Search/Search Search-related issues that do not fall into other categories v8.7.1 labels Feb 27, 2023
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Feb 27, 2023
@elasticsearchmachine
Copy link
Collaborator

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

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 @javanna.

@javanna javanna merged commit 75da304 into elastic:8.7 Feb 27, 2023
@javanna javanna deleted the revert/remove_shortcut_total_hit_count branch February 27, 2023 19:17
@javanna javanna added v8.7.0 and removed v8.7.1 labels Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>non-issue :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.

3 participants