# Storage size doubled after Update By Query

**URL:** <https://discuss.elastic.co/t/storage-size-doubled-after-update-by-query/296405>\
**Category:** Kibana\
**Created:** [February 6, 2022, 11:56pm UTC](https://discuss.elastic.co/t/storage-size-doubled-after-update-by-query/296405 "2022-02-06T23:56:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yamaga](https://avatars.discourse-cdn.com/v4/letter/y/858c86/32.png) [@yamaga](https://discuss.elastic.co/u/yamaga)\
**Post date:** [February 6, 2022, 11:56pm UTC](https://discuss.elastic.co/t/storage-size-doubled-after-update-by-query/296405/1 "2022-02-06T23:56:23Z")

</div>

Hi,

Mi index has 17Gb of storage size

But where I executed ( **2 times !** ) the "update by query" querey to copy a field in an other one the size is increased :  
The Docs count doesnt change.

![image](https://us1.discourse-cdn.com/elastic/original/3X/9/5/952063f5fc3f10bd600f7a9d411a921eda36e176.png)

```auto
POST jp_data_stk_mouv/_update_by_query?conflicts=proceed&refresh=true
{

"query" : {

"match_all" : {}
},

"script" : "ctx._source.ma_date = ctx._source.DATE_STAT;"
}

```

My index pattern (for this index) has it s data duplicated when I perform some metrics.

Any idea why I get this please?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 6, 2022, 11:58pm UTC](https://discuss.elastic.co/t/storage-size-doubled-after-update-by-query/296405/2 "2022-02-06T23:58:17Z")

</div>

Did you run a force merge on the index? [Force merge API | Elasticsearch Guide [7.17] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/indices-forcemerge.html)

---

<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:** [March 6, 2022, 11:58pm UTC](https://discuss.elastic.co/t/storage-size-doubled-after-update-by-query/296405/3 "2022-03-06T23:58:36Z")

</div>

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