# How to create memory based index

**URL:** <https://discuss.elastic.co/t/how-to-create-memory-based-index/7009>\
**Category:** Elasticsearch\
**Created:** [March 14, 2012, 9:34pm UTC](https://discuss.elastic.co/t/how-to-create-memory-based-index/7009 "2012-03-14T21:34:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sborar](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@sborar](https://discuss.elastic.co/u/sborar)\
**Post date:** [March 14, 2012, 9:34pm UTC](https://discuss.elastic.co/t/how-to-create-memory-based-index/7009/1 "2012-03-14T21:34:18Z")

</div>

I am using Elastic Search with 10 shards with 1 replication and local storage. How can I tweak my settings so that index is stored in memory. I need index in memory for performance reasons.

Also is there a way to configure gateway such that it only stores meta data on shared nfs and not the indices also ?

Thanks

---

<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 6, 2017, 3:36am UTC](https://discuss.elastic.co/t/how-to-create-memory-based-index/7009/2 "2017-07-06T03:36:05Z")

</div>


