# No of buckets creation for composite aggregation

**URL:** <https://discuss.elastic.co/t/no-of-buckets-creation-for-composite-aggregation/383350>\
**Category:** Elasticsearch\
**Created:** [November 11, 2025, 5:12am UTC](https://discuss.elastic.co/t/no-of-buckets-creation-for-composite-aggregation/383350 "2025-11-11T05:12:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KrishnaVardhan\_Reddy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/krishnavardhan_reddy/32/145700_2.png) [@KrishnaVardhan\_Reddy](https://discuss.elastic.co/u/KrishnaVardhan_Reddy)\
**Post date:** [November 11, 2025, 5:12am UTC](https://discuss.elastic.co/t/no-of-buckets-creation-for-composite-aggregation/383350/1 "2025-11-11T05:12:22Z")

</div>

lets say, I have 40000 unique buckets, can i use composite aggregation to fetch 1000 buckets at once, repeat the call until i fetch all the buckets

---

<div class="post-metadata">

**Author:** ![Ignacio\_Vera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ignacio_vera/32/36674_2.png) [@Ignacio\_Vera](https://discuss.elastic.co/u/Ignacio_Vera)\
**Post date:** [November 21, 2025, 5:25pm UTC](https://discuss.elastic.co/t/no-of-buckets-creation-for-composite-aggregation/383350/2 "2025-11-21T17:25:08Z")

</div>

Sure, I cannot see why not, it is design exactly for that.
