# Creating an Index with one Segment

**URL:** <https://discuss.elastic.co/t/creating-an-index-with-one-segment/59622>\
**Category:** Elasticsearch\
**Created:** [September 2, 2016, 5:58am UTC](https://discuss.elastic.co/t/creating-an-index-with-one-segment/59622 "2016-09-02T05:58:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jumana](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@Jumana](https://discuss.elastic.co/u/Jumana)\
**Post date:** [September 2, 2016, 5:58am UTC](https://discuss.elastic.co/t/creating-an-index-with-one-segment/59622/1 "2016-09-02T05:58:56Z")

</div>

I would like to make sure when creating my Index and ingesting data I only have one segment. My ingestion speed is slowed down heavily due to segment merging and from my performance monitoring I can see that it merges the segments == refreshInterval set in the elasticsearch.yml file.

I would like to prevent this frequest disk I/O specially since my elasticsearch runs on a VM. Any pointers to this would be great.

I have tried as per what this thread suggests, but it doesnt work

> <https://stackoverflow.com/questions/12360634/how-to-reduce-number-of-segments-in-elasticsearch-index>

---

<div class="post-metadata">

**Author:** ![Joshua\_Rich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshua_rich/32/44953_2.png) [@Joshua\_Rich](https://discuss.elastic.co/u/Joshua_Rich)\
**Post date:** [September 2, 2016, 6:11am UTC](https://discuss.elastic.co/t/creating-an-index-with-one-segment/59622/2 "2016-09-02T06:11:13Z")

</div>

This is not something you are going to be able to directly control during indexing. I'd suggest having a read through the definitive guide section on [tuning indexing](https://www.elastic.co/guide/en/elasticsearch/guide/current/indexing-performance.html#segments-and-merging). Particularly, if you aren't searching, just disable the refresh interval.

---

<div class="post-metadata">

**Author:** ![Jumana](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@Jumana](https://discuss.elastic.co/u/Jumana)\
**Post date:** [September 2, 2016, 7:57pm UTC](https://discuss.elastic.co/t/creating-an-index-with-one-segment/59622/3 "2016-09-02T19:57:53Z")

</div>

Alright, thanks for confirming the same.

---

<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:** [July 5, 2017, 10:22pm UTC](https://discuss.elastic.co/t/creating-an-index-with-one-segment/59622/4 "2017-07-05T22:22:44Z")

</div>


