# Performance issues with \_search query

**URL:** <https://discuss.elastic.co/t/performance-issues-with-search-query/195577>\
**Category:** Elasticsearch\
**Created:** [August 16, 2019, 11:44pm UTC](https://discuss.elastic.co/t/performance-issues-with-search-query/195577 "2019-08-16T23:44:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hrastogi](https://avatars.discourse-cdn.com/v4/letter/h/7bcc69/32.png) [@hrastogi](https://discuss.elastic.co/u/hrastogi)\
**Post date:** [August 16, 2019, 11:44pm UTC](https://discuss.elastic.co/t/performance-issues-with-search-query/195577/1 "2019-08-16T23:44:28Z")

</div>

Hi,  
We are running ES 6.5 cluster with 10 data node and 3 front node on i3.2xlarge.  
We have daily indices with records-2019-08-10, records-2019-08-11 etc  
Each index has 50 million records with 20GB daily data size.

the index is having 2 shards and 2 replicas

We are running a \_search query with indices pattern records-2019-08-1\* (means the search is done for 10 days)  
The query is as follows `{"size":50,"timeout":"60s", "_source":["field1","field2","field3"],"query":{"bool":{"filter":[{"match":{"field1":{"query":"xxx"}}},{"range":{"field2":{"from":234}}}]}},"sort":[{"field2":{"order":"asc"}}]}`  
While running the load test I am hitting the front nodes and the test results return max of 40 requests/sec with average latency 5 secs .  
There is no active write done to the above-mentioned indices.  
The results we are getting are way less than we expect our production taking too.  
I am looking for ways to optimize the performance of the index.  
We want to scale it to 500-600 RPS.  
Let me know if there are suggestions

---

<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:** [August 17, 2019, 11:01am UTC](https://discuss.elastic.co/t/performance-issues-with-search-query/195577/2 "2019-08-17T11:01:27Z")

</div>

What is the average size of your documents? What does the match query string look like?

---

<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 14, 2019, 11:01am UTC](https://discuss.elastic.co/t/performance-issues-with-search-query/195577/3 "2019-09-14T11:01:36Z")

</div>

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