# Size query performance problems

**URL:** <https://discuss.elastic.co/t/size-query-performance-problems/122637>\
**Category:** Elasticsearch\
**Created:** [March 6, 2018, 6:02am UTC](https://discuss.elastic.co/t/size-query-performance-problems/122637 "2018-03-06T06:02:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rotem\_Shriki](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rotem_shriki/32/28463_2.png) [@Rotem\_Shriki](https://discuss.elastic.co/u/Rotem_Shriki)\
**Post date:** [March 6, 2018, 6:02am UTC](https://discuss.elastic.co/t/size-query-performance-problems/122637/1 "2018-03-06T06:02:45Z")

</div>

Hi all,  
I have 3 nodes clusters on aws (c4 instances) and 245 docs in my elastic,  
when i try to limit the results to 50 using size:50, my performance degraded from 300ms to 2800ms ( without even using search\_after or from) , we tried to add from:0 but without success, my logs are empty.

any help will be appreciated ,

response from server , sometimes took value is 2  
"took": 1,  
"timed\_out": false,  
"\_shards": {  
"total": 5,  
"successful": 5,  
"skipped": 0,  
"failed": 0  
},

Thanks.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 6, 2018, 4:34pm UTC](https://discuss.elastic.co/t/size-query-performance-problems/122637/2 "2018-03-06T16:34:30Z")

</div>

Can you share the full json output when you are getting this slow response please?

---

<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:** [April 3, 2018, 4:35pm UTC](https://discuss.elastic.co/t/size-query-performance-problems/122637/3 "2018-04-03T16:35:11Z")

</div>

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