opensearch-project/OpenSearch

[Enhancement] Histogram aggregation should initialize Ranges lazily

オープン

#18,241 opened on 2025/05/08

 (13 件のコメント) (0 件のリアクション) (1 人の担当者)Java (1,505 件のフォーク)batch import
Search:Aggregationsenhancementgood first issue

Repository metrics

Stars
 (8,123 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド