# What would cause refresh=wait\_for to regularly take 2-5 seconds?

**URL:** <https://discuss.elastic.co/t/what-would-cause-refresh-wait-for-to-regularly-take-2-5-seconds/106369>\
**Category:** Elasticsearch\
**Created:** [November 3, 2017, 11:43pm UTC](https://discuss.elastic.co/t/what-would-cause-refresh-wait-for-to-regularly-take-2-5-seconds/106369 "2017-11-03T23:43:38Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Rod\_Howarth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rod_howarth/32/23083_2.png) [@Rod\_Howarth](https://discuss.elastic.co/u/Rod_Howarth)\
**Post date:** [November 28, 2017, 2:08am UTC](https://discuss.elastic.co/t/what-would-cause-refresh-wait-for-to-regularly-take-2-5-seconds/106369/8 "2017-11-28T02:08:42Z")

</div>

Thanks so much for your detailed reply @_markus! It sounds like you've tracked it down, and have saved me from spending lots of time digging into things. It seems like something that would be good to have called out in the docs - maybe even just for the `refresh=wait_for` setting to let you know that it will take a long time.

For our implementation we have parent child relationships but are in the process of migrating away from them, we already have stopped querying them and are about to remove them from our index completely. I'll let you know how it goes!

---

_[View the full topic](https://discuss.elastic.co/t/what-would-cause-refresh-wait-for-to-regularly-take-2-5-seconds/106369)._
