opensearch-project/OpenSearch

[Enhancement] Histogram aggregation should initialize Ranges lazily

Open

#18.241 aberto em 8 de mai. de 2025

Ver no GitHub
 (13 comments) (0 reactions) (1 assignee)Java (1.505 forks)batch import
Search:Aggregationsenhancementgood first issue

Métricas do repositório

Stars
 (8.123 stars)
Métricas de merge de PR
 (Mesclagem média 5d 9h) (266 fundiu PRs em 30d)

Description

Is your feature request related to a problem? Please describe

Currently, optimized histogram aggregation using multi range traversal initialized Ranges with all buckets eagerly. While for individual request, memory implications are small, it can starting adding up across all requests on a node.

Describe the solution you'd like

Given we process buckets one at a time, they can be initialized lazily avoiding unnecessary memory allocations. This should also allow to raise the number of buckets limit from 3k to 10k or more

Related component

No response

Describe alternatives you've considered

No response

Additional context

No response

Guia do colaborador