# \_update\_by\_query is very slow (version 7.3 elastic cloud)

**URL:** <https://discuss.elastic.co/t/update-by-query-is-very-slow-version-7-3-elastic-cloud/201173>\
**Category:** Elasticsearch\
**Created:** [September 26, 2019, 7:48am UTC](https://discuss.elastic.co/t/update-by-query-is-very-slow-version-7-3-elastic-cloud/201173 "2019-09-26T07:48:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jadore](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jadore/32/45191_2.png) [@jadore](https://discuss.elastic.co/u/jadore)\
**Post date:** [September 26, 2019, 7:48am UTC](https://discuss.elastic.co/t/update-by-query-is-very-slow-version-7-3-elastic-cloud/201173/1 "2019-09-26T07:48:55Z")

</div>

when I use this query from dev tools in Kibana

```
POST some_index/_update_by_query?conflicts=proceed
{
  "script": {
    "source": "ctx._source.view_count = 0",
    "lang": "painless"
  }
}

```

it will return

```
{
  "ok": false,
  "message": "backend closed connection"
}

```

We have about 300,000 records which isn't much.

How should I solve this 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 24, 2019, 7:49am UTC](https://discuss.elastic.co/t/update-by-query-is-very-slow-version-7-3-elastic-cloud/201173/2 "2019-10-24T07:49:12Z")

</div>

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