# Automatic Index creation vs "apriori" Creation

**URL:** <https://discuss.elastic.co/t/automatic-index-creation-vs-apriori-creation/147300>\
**Category:** Elasticsearch\
**Created:** [September 5, 2018, 4:26am UTC](https://discuss.elastic.co/t/automatic-index-creation-vs-apriori-creation/147300 "2018-09-05T04:26:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecarmona](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@ecarmona](https://discuss.elastic.co/u/ecarmona)\
**Post date:** [September 5, 2018, 4:26am UTC](https://discuss.elastic.co/t/automatic-index-creation-vs-apriori-creation/147300/1 "2018-09-05T04:26:33Z")

</div>

Hi There,

I hope all is going well in the elastic world. Today I was asked what is the advantage between creating indexes upfront and automatic index creation when these indexes are referred to a timestamp. For instance, if elastic is storing documents in daily indexes (yyyy-mm-dd) and each of these store documents by the second. The only argument I could think off, is that creating the index beforehand it helps to ensure that the index is ready to store documents and when creating indexes of the fly, the risk could be that the index might not be available immediately for writing which could affect the performance of the application pushing data into elastic.

Is there any document or best practice regarding this matter?

Thanks in advance,

Erik

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 5, 2018, 4:31am UTC](https://discuss.elastic.co/t/automatic-index-creation-vs-apriori-creation/147300/2 "2018-09-05T04:31:34Z")

</div>

Any delays are minimal. It's not worth the hassle of having to manage creation ahead of time.

---

<div class="post-metadata">

**Author:** ![ecarmona](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@ecarmona](https://discuss.elastic.co/u/ecarmona)\
**Post date:** [September 5, 2018, 4:45am UTC](https://discuss.elastic.co/t/automatic-index-creation-vs-apriori-creation/147300/3 "2018-09-05T04:45:22Z")

</div>

Thanks @warkolm

---

<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:** [October 3, 2018, 4:45am UTC](https://discuss.elastic.co/t/automatic-index-creation-vs-apriori-creation/147300/4 "2018-10-03T04:45:24Z")

</div>

Closed on October 3, 2018, 4:45am UTC

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