-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
Optimize sibling aggs together #82373
Comments
Pinging @elastic/es-analytics-geo (Team:Analytics) |
FWIW: I observed something similar when developing vector tiles. There are some cases where we are running a GeoGrid aggregation with a sibling GeoBounds aggregation. In some cases even the GeoGrid aggregations has a child GeoCentroid aggregation. For each aggregation we are having to read and decode the doc value (which for geo_shape might be expensive) so optimising them together would be a big win. |
The most relevant case for the Lens use case is merging separate percentiles aggs on the same field. e.g. and should have near-identical performance |
we discussed this one as a team, adding to our roadmap as its something we believe we want to do, but we need to spend some time investigating a solution and coming up with a plan for this. removing the team-discuss. |
Closing as not planned, focus is on ES|QL development. |
If we have sibling aggregations running on the same field there are a few cases where we could collect them with a single aggregation and then split the results. For example, if you run the
min
andmax
aggregations as siblings on the same field you could collect astats
aggregation and then split out the results on read. Similarly, if there are twopercentiles
aggregations as siblings we could combine them into one for collection.The text was updated successfully, but these errors were encountered: