Skip to content

global_ordinals execution mode for the terms aggregation has an adversarially impact on children aggregations that expect dense buckets #24788

@jimczi

Description

@jimczi

Currently the global_ordinals mode is picked automatically for any root aggregation on a keyword field. This works well in a lot of cases except when a child aggregation expects dense buckets:
#24359
This issue is mostly visible with memory intensive aggregations like cardinality because currently they can go OOM even when the number of documents matching the query is low. Though it has also an impact on less memory intensive aggregation like max which also expects dense buckets.

This issue is a placeholder to list the actions that we are going to make to fix this situation:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions