# ElasticSearch 2.x parent-child performance

**URL:** <https://discuss.elastic.co/t/elasticsearch-2-x-parent-child-performance/37929>\
**Category:** Elasticsearch\
**Created:** [December 24, 2015, 10:23am UTC](https://discuss.elastic.co/t/elasticsearch-2-x-parent-child-performance/37929 "2015-12-24T10:23:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sundar\_V](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sundar_v/32/6928_2.png) [@Sundar\_V](https://discuss.elastic.co/u/Sundar_V)\
**Post date:** [December 24, 2015, 10:23am UTC](https://discuss.elastic.co/t/elasticsearch-2-x-parent-child-performance/37929/1 "2015-12-24T10:23:37Z")

</div>

In the definite guide here - [https://www.elastic.co/guide/en/elasticsearch/guide/current/parent-child-performance.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/parent-child-performance.html) - there is a statement that the performance of parent-child queries can be 5-10 times slower than nested queries.

It says that there are plans to use doc values instead, for better performance. Is there an improvement on this area in 2.x

Thanks,  
Sundar.

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [December 24, 2015, 10:38am UTC](https://discuss.elastic.co/t/elasticsearch-2-x-parent-child-performance/37929/2 "2015-12-24T10:38:45Z")

</div>

See [https://github.com/elastic/elasticsearch/pull/6511](https://github.com/elastic/elasticsearch/pull/6511). There are improvements, but parent/child is still much slower than nested queries, which are themselves much slower than regular queries.

---

<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 5, 2017, 11:28pm UTC](https://discuss.elastic.co/t/elasticsearch-2-x-parent-child-performance/37929/3 "2017-07-05T23:28:52Z")

</div>


