# How to set elasticsearch index store?

**URL:** <https://discuss.elastic.co/t/how-to-set-elasticsearch-index-store/57556>\
**Category:** Elasticsearch\
**Created:** [August 9, 2016, 7:09am UTC](https://discuss.elastic.co/t/how-to-set-elasticsearch-index-store/57556 "2016-08-09T07:09:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![laoyang360](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@laoyang360](https://discuss.elastic.co/u/laoyang360)\
**Post date:** [August 9, 2016, 7:09am UTC](https://discuss.elastic.co/t/how-to-set-elasticsearch-index-store/57556/1 "2016-08-09T07:09:43Z")

</div>

Hi, All  
You know, The elasticsearch index can store in memory or in disk. I want to konw which date can store in memory and which date can store in disk?  
The difference of store in memory and store in disk?  
How to set the es index store? Just revise the configuration or still has many other method?  
If you know, please help me.

Thanks  
laoyang360

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [August 9, 2016, 8:03am UTC](https://discuss.elastic.co/t/how-to-set-elasticsearch-index-store/57556/2 "2016-08-09T08:03:56Z")

</div>

There used to be an option to store the index in memory but it has been removed since it did not improve performance compared to the mmap-based store, which maps the index in memory using the `mmap` system call.

I would advise to use the defaults as far as the index store is concerned.

---

<div class="post-metadata">

**Author:** ![laoyang360](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@laoyang360](https://discuss.elastic.co/u/laoyang360)\
**Post date:** [August 9, 2016, 8:36am UTC](https://discuss.elastic.co/t/how-to-set-elasticsearch-index-store/57556/3 "2016-08-09T08:36:26Z")

</div>

Hi, @jpountz:  
Thanks for your reply so quickly.

Depending on your point of view， ES1.X has the memory store, But In ES2.X, we just use the default store type (hybrid niofs and mmapfs). We do not need to focus on the underlying storage.

I find the document from [https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-store.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-store.html).

Sentence summary:  
Use mmapfs on Windows 64bit systems;  
Use simplefs on the windows 32bit systems;  
In addition to default default\_fs (hybrid niofs and mmapfs), such as Linux systems.

Whether my summary is correct or not？

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [August 9, 2016, 8:41am UTC](https://discuss.elastic.co/t/how-to-set-elasticsearch-index-store/57556/4 "2016-08-09T08:41:03Z")

</div>

Yes, this is how the defaut store will be chosen by default by elasticsearch, which should give the best performance/stability.

---

<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:29pm UTC](https://discuss.elastic.co/t/how-to-set-elasticsearch-index-store/57556/5 "2017-07-05T22:29:09Z")

</div>


