# GET API with refresh call

**URL:** <https://discuss.elastic.co/t/get-api-with-refresh-call/148887>\
**Category:** Elasticsearch\
**Created:** [September 17, 2018, 8:20pm UTC](https://discuss.elastic.co/t/get-api-with-refresh-call/148887 "2018-09-17T20:20:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![silvina](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/silvina/32/44096_2.png) [@silvina](https://discuss.elastic.co/u/silvina)\
**Post date:** [September 17, 2018, 8:20pm UTC](https://discuss.elastic.co/t/get-api-with-refresh-call/148887/1 "2018-09-17T20:20:35Z")

</div>

I want to use the GET API but I realise that a refresh call is made every time and it causes heavy performance problems. The first question is why is a refresh necessary? (I think that the request go to the primary shard and the doc is in memory in that time) and the second question: Is there a way to avoid the refresh call? (the refresh=false parameter is not working)  
(The elastic version is 5.6.0)

Thanks!

---

<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:** [October 15, 2018, 8:23pm UTC](https://discuss.elastic.co/t/get-api-with-refresh-call/148887/2 "2018-10-15T20:23:21Z")

</div>

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