# Elasticsearch 2.4.5 Very slow updates of date fields

**URL:** <https://discuss.elastic.co/t/elasticsearch-2-4-5-very-slow-updates-of-date-fields/101725>\
**Category:** Elasticsearch\
**Created:** [September 25, 2017, 3:14pm UTC](https://discuss.elastic.co/t/elasticsearch-2-4-5-very-slow-updates-of-date-fields/101725 "2017-09-25T15:14:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leon\_Brodsky](https://avatars.discourse-cdn.com/v4/letter/l/8e7dd6/32.png) [@Leon\_Brodsky](https://discuss.elastic.co/u/Leon_Brodsky)\
**Post date:** [September 25, 2017, 3:14pm UTC](https://discuss.elastic.co/t/elasticsearch-2-4-5-very-slow-updates-of-date-fields/101725/1 "2017-09-25T15:14:06Z")

</div>

Hi,  
I am having a problem with updates of date fields using bulk updates with upsert.

I am running bulk of 2000 docs (may be same documents in the same bulk to be updated).  
and it takes a long long time to accomplish this.

For example:  
{"update":{"\_index":"aggregation","\_type":"white alert","\_id":"17431860217888512827","\_retry\_on\_conflict":5}}  
{"script":"ctx.\_source.count+=2; **ctx.\_source.last\_alert\_timestamp='2017-09-25T15:41:04.58Z'** ;ctx.\_source.reason=(ctx.\_source.reason+ ['Unknown Entity']).unique();","upsert":{"source":{"//eth//source\_address":"00:10:bg:ff:10:02","//ip//src\_meaning":"15.25.25.45","//iec104//src\_asdu\_addr":"162"},"destination":{"//eth//destination\_address":"5c:58:fc:b5:01:ee","//ip//dst\_meaning":"15.25.25.45"},"count":2,"read":0,"status":"new","archive":0,"protocol":"xxx","reason":["Unknown Entity"],"bbx\_name":"10.0.0.2","first\_alert\_timestamp":"2017-09-25T15:41:04.57Z","last\_alert\_timestamp":"2017-09-25T15:41:04.58Z"}}

if i do the same but remove the **bold** part of the date update all bulk finished within seconds otherwise it run for minutes.

i work with index with 5 shards, ES version is 2.4.5.

Does anybody has any idea what can i do? or what cause the 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:** [October 23, 2017, 3:14pm UTC](https://discuss.elastic.co/t/elasticsearch-2-4-5-very-slow-updates-of-date-fields/101725/2 "2017-10-23T15:14:26Z")

</div>

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