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

Simplify and speedup handling of AliasFilter logic in search #120446

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

original-brownbear
Copy link
Member

Building the map is needlessly expensive, we can just use the empty filter as a default throughout the logic and save a lot of indirection.

This is a reasonable simplification + memory saving now and a critical performance improvement once #118490 lands.
Also, made the buildAliasFilter method faster on the hot path without aliases.

Building the map is needlessly expensive, we can just the empty filter as a default.
@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Jan 20, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@original-brownbear
Copy link
Member Author

hmpf the BwC here is really tricky, draft for now, no need to review

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 v8.19.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants