Skip to content

[Performance] Optimize String terms agg #18704

@vinaykpud

Description

@vinaykpud

Describe the bug

Problem
String terms aggregations has similar inefficiencies as numeric terms(#18703), with redundant sorting and suboptimal top-N selection.

Solution
Applied analogous optimizations to string terms aggregations, avoiding double sorting and optimizing bucket selection based on N relative to bucket counts.
rishabhmaurya@27d71e8

Impact
Achieved performance improvements, enhancing aggregation efficiency for string-term aggregation queries.

Related component

Search:Performance

Additional Details

Plugins
NA

Screenshots
NA

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

✅ Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions