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

Rewrite upper bound of time range of shard request #79610

Open
dgieselaar opened this issue Oct 21, 2021 · 2 comments
Open

Rewrite upper bound of time range of shard request #79610

dgieselaar opened this issue Oct 21, 2021 · 2 comments
Labels
>enhancement :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch

Comments

@dgieselaar
Copy link
Member

Currently, Elasticsearch rewrites a range query on @timestamp to a MatchAll query if all the data on a shard falls within the bounds of the range query. This is great for increasing the amount of shard request cache hits.

To increase the cache hit ratio, ES could consider rewriting the upper bound of a query to its max value for @timestamp. In a sliding window scenario, where the consumers of the _search API round down the lower end of a time range, e.g. for a now-7d time range they will round down to the hour, the cache hit ratio on the index at the start of the time range will be increased.

@dgieselaar dgieselaar added the Team:Search Meta label for search team label Oct 21, 2021
@elasticmachine
Copy link
Collaborator

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

@jimczi jimczi added >enhancement :Search/Search Search-related issues that do not fall into other categories labels Oct 21, 2021
@javanna javanna added :Search Foundations/Search Catch all for Search Foundations and removed :Search/Search Search-related issues that do not fall into other categories labels Jul 17, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Jul 17, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine removed the Team:Search Meta label for search team label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Search Foundations/Search Catch all for Search Foundations Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch
Projects
None yet
Development

No branches or pull requests

5 participants