# 10% of queries are taking much longer

**URL:** <https://discuss.elastic.co/t/10-of-queries-are-taking-much-longer/112146>\
**Category:** Elasticsearch\
**Created:** [December 18, 2017, 4:55am UTC](https://discuss.elastic.co/t/10-of-queries-are-taking-much-longer/112146 "2017-12-18T04:55:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hello](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@hello](https://discuss.elastic.co/u/hello)\
**Post date:** [December 18, 2017, 4:55am UTC](https://discuss.elastic.co/t/10-of-queries-are-taking-much-longer/112146/1 "2017-12-18T04:55:13Z")

</div>

ES v5.6.5  
This in on a server that is heavily indexing all of the time. Refresh interval is set to 1s, and honestly before the last 2-3 months, this has never been a problem (possibly earlier version of ES). All of a sudden, roughly 10% of my queries (even running the same query over and over) will take \> 1-2s. The majority of my queries are ~40ms.

I am using has\_parent in all of them with an inner hits size of 1 (one parent to many children). Any help would be appreciated, please ask for more info if necessary.

Hot threads:  
[https://pastebin.com/raw/a2HxhFbA](https://pastebin.com/raw/a2HxhFbA)

---

<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:** [January 15, 2018, 4:55am UTC](https://discuss.elastic.co/t/10-of-queries-are-taking-much-longer/112146/2 "2018-01-15T04:55:19Z")

</div>

Closed on January 15, 2018, 4:55am UTC

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