# Composite Aggregation

**URL:** <https://discuss.elastic.co/t/composite-aggregation/299112>\
**Category:** Elasticsearch\
**Created:** [March 8, 2022, 3:45pm UTC](https://discuss.elastic.co/t/composite-aggregation/299112 "2022-03-08T15:45:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alessio\_Creo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alessio_creo/32/43381_2.png) [@Alessio\_Creo](https://discuss.elastic.co/u/Alessio_Creo)\
**Post date:** [March 8, 2022, 3:45pm UTC](https://discuss.elastic.co/t/composite-aggregation/299112/1 "2022-03-08T15:45:21Z")

</div>

Hi there,

I would like to know how the composite aggregations works exactly.  
Do they open a context with a TTL taking a "snapshot" of the index just like scroll?  
If so, for the same number of buckets are the performance similar to the classic nested aggregation?

Thank you very much.

Best regards,  
Alessio

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 5, 2022, 3:45pm UTC](https://discuss.elastic.co/t/composite-aggregation/299112/2 "2022-04-05T15:45:30Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
