opensearch-project/OpenSearch

[Enhancement] Histogram aggregation should initialize Ranges lazily

Open

#18,241 创建于 2025年5月8日

在 GitHub 查看
 (13 评论) (0 反应) (1 负责人)Java (1,505 fork)batch import
Search:Aggregationsenhancementgood first issue

仓库指标

Star
 (8,123 star)
PR 合并指标
 (平均合并 5天 9小时) (30 天内合并 266 个 PR)

描述

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

贡献者指南