Skip to content

Optimize min/max aggs to use index stats when applicable #14835

@jpountz

Description

@jpountz

Today if you run a min or max aggregation, we will always run the query and collect matches. However in the particular case that the query is a match_all query and that there are no deletions (which is fairly common for time series), we could use index statistics and return directly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions