Support dynamic pruning in the composite
aggregation
#88185
Labels
:Analytics/Aggregations
Aggregations
>enhancement
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
Queries sorted by field have improved a lot over the years when it comes to dynamic pruning:
The
composite
aggregation is very similar to sorted queries, yet it is currently at stage 2 in the evolution of sorted queries with regards to dynamic pruning. Unless you are aggregating on the primary index sort field, computing a single page of data requires collecting all matches that match the query.Can we add dynamic pruning support to the
composite
aggregation so that computing a single page of results wouldn't need to look at all matches? Ideally it would reuse the same logic that we are using for sorting queries via theLeafFieldComparator#competitiveIterator
andLeafCollector#competitiveIterator
APIs.Relates to #85759.
The text was updated successfully, but these errors were encountered: