# Need help to improve performance with ES

**URL:** <https://discuss.elastic.co/t/need-help-to-improve-performance-with-es/39973>\
**Category:** Elasticsearch\
**Created:** [January 24, 2016, 5:21pm UTC](https://discuss.elastic.co/t/need-help-to-improve-performance-with-es/39973 "2016-01-24T17:21:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 24, 2016, 6:32pm UTC](https://discuss.elastic.co/t/need-help-to-improve-performance-with-es/39973/2 "2016-01-24T18:32:16Z")

</div>

Have you tried denormalising and store a copy of each document for each location, possibly with the array of locations in a separate field if your application needs them? I suspect this would give better performance than using a groovy script, which you mention in [your other post](https://discuss.elastic.co/t/geo-distance-filter-with-multiple-lat-lon/39955).

---

_[View the full topic](https://discuss.elastic.co/t/need-help-to-improve-performance-with-es/39973)._
