# Performance considerations for indexed nested fields

**URL:** <https://discuss.elastic.co/t/performance-considerations-for-indexed-nested-fields/195792>\
**Category:** Elasticsearch\
**Created:** [August 19, 2019, 6:17pm UTC](https://discuss.elastic.co/t/performance-considerations-for-indexed-nested-fields/195792 "2019-08-19T18:17:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Wilde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ben_wilde/32/36314_2.png) [@Ben\_Wilde](https://discuss.elastic.co/u/Ben_Wilde)\
**Post date:** [August 19, 2019, 6:17pm UTC](https://discuss.elastic.co/t/performance-considerations-for-indexed-nested-fields/195792/1 "2019-08-19T18:17:25Z")

</div>

We are reaching a point where we will end up having a dozen or so indexed nested fields on each of our documents (which as we know creates an additional indexed document for each nested entry).

We're looking to understand the performance implications of this (as it will significantly increase our overall document count in our indexes), and to explore any alternatives, such as dynamically creating a different field for each nested document instead.

Thanks,  
Ben

cc: [adam@collabip.com](mailto:adam@collabip.com)

---

<div class="post-metadata">

**Author:** ![Mikhail\_Khludnev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mikhail_khludnev/32/59591_2.png) [@Mikhail\_Khludnev](https://discuss.elastic.co/u/Mikhail_Khludnev)\
**Post date:** [August 20, 2019, 8:43pm UTC](https://discuss.elastic.co/t/performance-considerations-for-indexed-nested-fields/195792/2 "2019-08-20T20:43:52Z")

</div>

Hello, Ben.  
Nested docs are the most perfomant data structure on Earth. Blowing up fields rather kills Lucene index.

---

<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 17, 2019, 8:56pm UTC](https://discuss.elastic.co/t/performance-considerations-for-indexed-nested-fields/195792/3 "2019-09-17T20:56:55Z")

</div>

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