# Why my refresh takes more than 200 milli seconds on average?

**URL:** <https://discuss.elastic.co/t/why-my-refresh-takes-more-than-200-milli-seconds-on-average/20846>\
**Category:** Elasticsearch\
**Created:** [November 19, 2014, 8:21pm UTC](https://discuss.elastic.co/t/why-my-refresh-takes-more-than-200-milli-seconds-on-average/20846 "2014-11-19T20:21:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jinyuan\_Zhou](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jinyuan_zhou/32/90185_2.png) [@Jinyuan\_Zhou](https://discuss.elastic.co/u/Jinyuan_Zhou)\
**Post date:** [November 19, 2014, 8:21pm UTC](https://discuss.elastic.co/t/why-my-refresh-takes-more-than-200-milli-seconds-on-average/20846/1 "2014-11-19T20:21:44Z")

</div>

I have average 220 milliseconds each refresh. It seems very slow. I thought  
refresh should be very fast. It flush the buffer to lucent segment and  
everything happens in memory. Does IO speed affect refresh speed? I do  
have spinning disks.  
Thanks,

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e5c9f7f0-40a8-4684-881c-b4493b000f94%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e5c9f7f0-40a8-4684-881c-b4493b000f94%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [November 19, 2014, 9:31pm UTC](https://discuss.elastic.co/t/why-my-refresh-takes-more-than-200-milli-seconds-on-average/20846/2 "2014-11-19T21:31:38Z")

</div>

Refreshing is expensive, depending on number of updated docs / deleted  
docs. Why should it be fast? It is not necessarily all in memory, it may  
include file close/open operations.

Jörg

On Wed, Nov 19, 2014 at 9:21 PM, Jinyuan Zhou [zhou.jinyuan@gmail.com](mailto:zhou.jinyuan@gmail.com)  
wrote:

> I have average 220 milliseconds each refresh. It seems very slow. I  
> thought refresh should be very fast. It flush the buffer to lucent segment  
> and everything happens in memory. Does IO speed affect refresh speed? I do  
> have spinning disks.  
> Thanks,
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/e5c9f7f0-40a8-4684-881c-b4493b000f94%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e5c9f7f0-40a8-4684-881c-b4493b000f94%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/e5c9f7f0-40a8-4684-881c-b4493b000f94%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/e5c9f7f0-40a8-4684-881c-b4493b000f94%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGOeN0VkF0AxgD85PFj3RoKYHJYhBzh0q2O0ERAujoSDQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGOeN0VkF0AxgD85PFj3RoKYHJYhBzh0q2O0ERAujoSDQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:48am UTC](https://discuss.elastic.co/t/why-my-refresh-takes-more-than-200-milli-seconds-on-average/20846/3 "2017-07-06T00:48:53Z")

</div>


