# How to handle partial updates concurrency

**URL:** <https://discuss.elastic.co/t/how-to-handle-partial-updates-concurrency/196374>\
**Category:** Elasticsearch\
**Created:** [August 22, 2019, 5:23pm UTC](https://discuss.elastic.co/t/how-to-handle-partial-updates-concurrency/196374 "2019-08-22T17:23:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vncsalencar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vncsalencar/32/47887_2.png) [@vncsalencar](https://discuss.elastic.co/u/vncsalencar)\
**Post date:** [August 22, 2019, 5:23pm UTC](https://discuss.elastic.co/t/how-to-handle-partial-updates-concurrency/196374/1 "2019-08-22T17:23:57Z")

</div>

Hi there!

I've got a problem.

How should one deal with partial updates concurrency? I mean... what if, for instance, update the same field of a document and my request arrives unorderly (at the wrong order, meaning a older version would override a newer)?

Also, it would be easy to deal with it were it only one field. But how to deal with differente fields of the same document?

---

<div class="post-metadata">

**Author:** ![nhat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nhat/32/22170_2.png) [@nhat](https://discuss.elastic.co/u/nhat)\
**Post date:** [August 22, 2019, 9:59pm UTC](https://discuss.elastic.co/t/how-to-handle-partial-updates-concurrency/196374/2 "2019-08-22T21:59:51Z")

</div>

@vncsalencar You can use [optimistic concurrency control](https://www.elastic.co/guide/en/elasticsearch/reference/current/optimistic-concurrency-control.html) to solve your problem.

---

<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:** [September 19, 2019, 9:59pm UTC](https://discuss.elastic.co/t/how-to-handle-partial-updates-concurrency/196374/3 "2019-09-19T21:59:53Z")

</div>

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