Skip to content

Conversation

@original-brownbear
Copy link
Contributor

The runtime of this action can heavily depend on the number of shards queried, how quickly queries execute and how likely the can_match we execute during the query phase is to return false. As we shouldn't have O(n) cost tasks that may run unpredictably long, let's fork this to search_coordination like we do for can_match and field_caps which both have similar runtime cost.

The runtime of this action can heavily depend on the number of shards
queried, how quickly queries execute and how likely the can_match we
execute during the query phase is to return `false`.
As we shouldn't have O(n) cost tasks that may run unpredictably long,
lets fork this to search_coordination like we do for can_match and
field_caps which both have similar runtime cost.
@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Apr 3, 2025
@elasticsearchmachine
Copy link
Collaborator

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

Copy link
Contributor

@drempapis drempapis left a comment

Choose a reason for hiding this comment

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

LGTM, thank you Armin

@original-brownbear
Copy link
Contributor Author

Thanks for taking a look @drempapis! It turns out that thanks to merging another PR we can now do even better here, I opened #127317 which takes this cahnge one step further :) I'll close here, we can go straight to that one now I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants