# Bulk updates are extremely slow after upgrading to 5.2

**URL:** <https://discuss.elastic.co/t/bulk-updates-are-extremely-slow-after-upgrading-to-5-2/79450>\
**Category:** Elasticsearch\
**Created:** [March 21, 2017, 3:18pm UTC](https://discuss.elastic.co/t/bulk-updates-are-extremely-slow-after-upgrading-to-5-2/79450 "2017-03-21T15:18:09Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)\
**Post date:** [April 21, 2017, 9:48am UTC](https://discuss.elastic.co/t/bulk-updates-are-extremely-slow-after-upgrading-to-5-2/79450/26 "2017-04-21T09:48:57Z")

</div>

The reason why it's slow is probably the following:

> **[Document API changes | Elasticsearch Reference \[5.5\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/5.5/breaking_50_document_api_changes.html)**

> As of 5.0.0 the get API will issue a refresh if the requested document has been changed since the last refresh but the change hasn’t been refreshed yet. This will also make all other changes visible immediately. This can have an impact on performance if the same document is updated very frequently using a read modify update pattern since it might create many small segments. This behavior can be disabled by passing realtime=false to the get request.

An update operation is effectively a GET + INSERT.

The solution would be not to frequently update the same documents again and again. If that's a necessity, you should batch these updates on the application level.

---

_[View the full topic](https://discuss.elastic.co/t/bulk-updates-are-extremely-slow-after-upgrading-to-5-2/79450)._
