# Will multi thread indexing lead to smaller index?

**URL:** <https://discuss.elastic.co/t/will-multi-thread-indexing-lead-to-smaller-index/81979>\
**Category:** Elasticsearch\
**Created:** [April 11, 2017, 12:05pm UTC](https://discuss.elastic.co/t/will-multi-thread-indexing-lead-to-smaller-index/81979 "2017-04-11T12:05:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shellbye\_Bai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shellbye_bai/32/29850_2.png) [@Shellbye\_Bai](https://discuss.elastic.co/u/Shellbye_Bai)\
**Post date:** [April 11, 2017, 12:05pm UTC](https://discuss.elastic.co/t/will-multi-thread-indexing-lead-to-smaller-index/81979/1 "2017-04-11T12:05:59Z")

</div>

I am indexing about 17w sentences, and I use bulk. When I indexed use single thread, it end up about 150M, but when I tried use multi thread, it became 110M, is this possible? I used the count api checked, the total number of document is the same.

Is there any way I can find the different between this two index?

---

<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:** [April 11, 2017, 12:10pm UTC](https://discuss.elastic.co/t/will-multi-thread-indexing-lead-to-smaller-index/81979/2 "2017-04-11T12:10:09Z")

</div>

The size of the index can vary depending on how segments have or have not merged. If you are indexing at a higher speed using multiple threads it is possible that the initial segments will be larger and therefore merge differently.

---

<div class="post-metadata">

**Author:** ![Shellbye\_Bai](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shellbye_bai/32/29850_2.png) [@Shellbye\_Bai](https://discuss.elastic.co/u/Shellbye_Bai)\
**Post date:** [April 11, 2017, 12:16pm UTC](https://discuss.elastic.co/t/will-multi-thread-indexing-lead-to-smaller-index/81979/3 "2017-04-11T12:16:58Z")

</div>

Thanks for your reply.

---

<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:** [May 9, 2017, 12:19pm UTC](https://discuss.elastic.co/t/will-multi-thread-indexing-lead-to-smaller-index/81979/4 "2017-05-09T12:19:39Z")

</div>

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