# Rollup vs Transform

**URL:** https://discuss.elastic.co/t/rollup-vs-transform/340537
**Category:** Elasticsearch
**Tags:** transforms, rollups
**Created:** [August 10, 2023, 9:49am UTC](https://discuss.elastic.co/t/rollup-vs-transform/340537 "2023-08-10T09:49:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ajitesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ajitesh/32/124510_2.png) [@ajitesh](https://discuss.elastic.co/u/ajitesh)
#### Post date: [August 10, 2023, 9:49am UTC](https://discuss.elastic.co/t/rollup-vs-transform/340537/1 "2023-08-10T09:49:28Z")

</div>

I have a use case where I have a nested aggregation query, now I want to ingest the data for all the aggregation results into a new index. I was going through the Elasticsearch documents and found out that Aggregation does not support nested aggregation. Will rollup help for for both historical and new data?

---

<div class="post-metadata">

### Author: ![Wave](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wave/32/117242_2.png) [@Wave](https://discuss.elastic.co/u/Wave)
#### Post date: [August 14, 2023, 3:23pm UTC](https://discuss.elastic.co/t/rollup-vs-transform/340537/2 "2023-08-14T15:23:09Z")

</div>

Hi @ajitesh,  
Could you expound upon your use case, because elastic does support [nested aggregations](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-nested-aggregation.html).

---

<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: [September 11, 2023, 3:23pm UTC](https://discuss.elastic.co/t/rollup-vs-transform/340537/3 "2023-09-11T15:23:45Z")

</div>

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