# Array vs Nested type when faceting

**URL:** https://discuss.elastic.co/t/array-vs-nested-type-when-faceting/13565
**Category:** Elasticsearch
**Created:** [September 12, 2013, 1:30am UTC](https://discuss.elastic.co/t/array-vs-nested-type-when-faceting/13565 "2013-09-12T01:30:09Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mathi](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@Mathi](https://discuss.elastic.co/u/Mathi)
#### Post date: [September 12, 2013, 1:30am UTC](https://discuss.elastic.co/t/array-vs-nested-type-when-faceting/13565/1 "2013-09-12T01:30:09Z")

</div>

I have heard that array type field is consuming a lot of memory when faceting, wouldn't it be a better idea to use nested type.

Since elasticsearch 0.90 the memory consumption for array type have been reduced a lot but i am asking myself what would be the best?

Which one generate less overhead?

Thank you

---

<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: [July 6, 2017, 2:17am UTC](https://discuss.elastic.co/t/array-vs-nested-type-when-faceting/13565/2 "2017-07-06T02:17:03Z")

</div>


