# Store.size decreased drastically after reindexing data from 5.6 ES cluster to 7.6 ES cluster

**URL:** <https://discuss.elastic.co/t/store-size-decreased-drastically-after-reindexing-data-from-5-6-es-cluster-to-7-6-es-cluster/223400>\
**Category:** Elasticsearch\
**Created:** [March 12, 2020, 7:17pm UTC](https://discuss.elastic.co/t/store-size-decreased-drastically-after-reindexing-data-from-5-6-es-cluster-to-7-6-es-cluster/223400 "2020-03-12T19:17:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bharath\_Italapur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bharath_italapur/32/51588_2.png) [@Bharath\_Italapur](https://discuss.elastic.co/u/Bharath_Italapur)\
**Post date:** [March 12, 2020, 7:17pm UTC](https://discuss.elastic.co/t/store-size-decreased-drastically-after-reindexing-data-from-5-6-es-cluster-to-7-6-es-cluster/223400/1 "2020-03-12T19:17:01Z")

</div>

Hi,

Thank you in advance,

I reindexed 5 Gb data from 5.6 ES cluster to 7.6 ES cluster. The data size decreased to 2.7 Gb, But the document count is the same. Can I know why this is happening?

The only difference between 5.6 ES cluster and 7.6 ES cluster is mapping, they are as follows.

1. There are no types in 7.6 ES cluster. (We are having single type mapping in 5.6 ES cluster so I removed type name in the mapping )

2. For the time zone, I am using XXX in 7.6 ES cluster instead of Z in 5.6 ES cluster

3. Instead of integer and long in 5.6 ES cluster, we are using double in 7.6 es cluster.

ES-5.6

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/3/131f3c78f38795cbba39c69c3cd01597ea0064b4.png)

ES- 7.6

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/3/a34e6796d87de7d44aff8c1a77c071c9c72c7382.png)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 12, 2020, 8:31pm UTC](https://discuss.elastic.co/t/store-size-decreased-drastically-after-reindexing-data-from-5-6-es-cluster-to-7-6-es-cluster/223400/2 "2020-03-12T20:31:15Z")

</div>

One other "tiny" difference is that there are 2 major versions away and same happens for Lucene which is used behind the scene.

Lot of things changed in the meantime. For example, geo points are taking less space on disk.

---

<div class="post-metadata">

**Author:** ![Bharath\_Italapur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bharath_italapur/32/51588_2.png) [@Bharath\_Italapur](https://discuss.elastic.co/u/Bharath_Italapur)\
**Post date:** [March 12, 2020, 8:41pm UTC](https://discuss.elastic.co/t/store-size-decreased-drastically-after-reindexing-data-from-5-6-es-cluster-to-7-6-es-cluster/223400/3 "2020-03-12T20:41:08Z")

</div>

Thank you for the quick response.

[quote="dadoonet, post:2, topic:223400, full:true"]  
One other "tiny" difference  
[/quote] 😆

So this won't affect the data right? I just want to make sure.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 12, 2020, 8:43pm UTC](https://discuss.elastic.co/t/store-size-decreased-drastically-after-reindexing-data-from-5-6-es-cluster-to-7-6-es-cluster/223400/4 "2020-03-12T20:43:16Z")

</div>

It may also be that they are at different stages of merging. If you forcemerge down to a single segment you can compare size more reliably.

---

<div class="post-metadata">

**Author:** ![Bharath\_Italapur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bharath_italapur/32/51588_2.png) [@Bharath\_Italapur](https://discuss.elastic.co/u/Bharath_Italapur)\
**Post date:** [March 12, 2020, 8:49pm UTC](https://discuss.elastic.co/t/store-size-decreased-drastically-after-reindexing-data-from-5-6-es-cluster-to-7-6-es-cluster/223400/5 "2020-03-12T20:49:10Z")

</div>

Hi Christian,

Thank you for the response.

> [@Christian\_Dahlqvist](#):
>
> If you forcemerge down to a single segment you can compare size more reliably.

I am not familiar to this process. Can you please let me know how to do this.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 13, 2020, 2:13am UTC](https://discuss.elastic.co/t/store-size-decreased-drastically-after-reindexing-data-from-5-6-es-cluster-to-7-6-es-cluster/223400/6 "2020-03-13T02:13:18Z")

</div>

Have a look at [the dics](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html).

---

<div class="post-metadata">

**Author:** ![Bharath\_Italapur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bharath_italapur/32/51588_2.png) [@Bharath\_Italapur](https://discuss.elastic.co/u/Bharath_Italapur)\
**Post date:** [March 13, 2020, 2:37pm UTC](https://discuss.elastic.co/t/store-size-decreased-drastically-after-reindexing-data-from-5-6-es-cluster-to-7-6-es-cluster/223400/7 "2020-03-13T14:37:24Z")

</div>

Hi Christian,

You want me to forcemerge the source index to know the actual size of the index. It is a production cluster. Just want to make sure that it wont effect the data right?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 14, 2020, 9:34am UTC](https://discuss.elastic.co/t/store-size-decreased-drastically-after-reindexing-data-from-5-6-es-cluster-to-7-6-es-cluster/223400/8 "2020-03-14T09:34:27Z")

</div>

It wont affect the data but can be quite I/O intensive.

---

<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:** [April 11, 2020, 9:34am UTC](https://discuss.elastic.co/t/store-size-decreased-drastically-after-reindexing-data-from-5-6-es-cluster-to-7-6-es-cluster/223400/9 "2020-04-11T09:34:35Z")

</div>

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