# Create/Delete index speedup for integration tests

**URL:** <https://discuss.elastic.co/t/create-delete-index-speedup-for-integration-tests/25766>\
**Category:** Elasticsearch\
**Created:** [July 17, 2015, 5:58am UTC](https://discuss.elastic.co/t/create-delete-index-speedup-for-integration-tests/25766 "2015-07-17T05:58:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nizsheanez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nizsheanez/32/688_2.png) [@nizsheanez](https://discuss.elastic.co/u/nizsheanez)\
**Post date:** [July 17, 2015, 5:58am UTC](https://discuss.elastic.co/t/create-delete-index-speedup-for-integration-tests/25766/1 "2015-07-17T05:58:45Z")

</div>

Hello. We have integration tests which do lot's of Create/Delete index operations. Can you suggest which settings can i use for improve speed of tests? Current my settings are:

```auto
{
  "index": {
    "warmer.enabled": true,
    "number_of_shards": 1,
    "number_of_replicas": 0,
    "refresh_interval": "500",
    "store.type": "memory",
    "routing.allocation.enable": "none"
  }
}
```

---

<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:** [July 17, 2015, 6:16am UTC](https://discuss.elastic.co/t/create-delete-index-speedup-for-integration-tests/25766/2 "2015-07-17T06:16:59Z")

</div>

Which part are you trying to speed up?

---

<div class="post-metadata">

**Author:** ![nizsheanez](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nizsheanez/32/688_2.png) [@nizsheanez](https://discuss.elastic.co/u/nizsheanez)\
**Post date:** [July 17, 2015, 6:38am UTC](https://discuss.elastic.co/t/create-delete-index-speedup-for-integration-tests/25766/3 "2015-07-17T06:38:43Z")

</div>

1. Create/Delete index operation. We do lot's of parallel Create/Delete in loops. Yes it's async, but for production we use 12 shards and replication:3 and niofs, Delete index takes 1s and Create index takes 1s-4s. As a result tests becomes slow and i looking for speedup Create/Delete process.
2. Indexing - but actually indexing with relications:0 is enough fast.

---

<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:** [July 18, 2015, 4:32am UTC](https://discuss.elastic.co/t/create-delete-index-speedup-for-integration-tests/25766/4 "2015-07-18T04:32:01Z")

</div>

Have you tried using bulk?

---

<div class="post-metadata">

**Author:** ![Alexey\_Sharov](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@Alexey\_Sharov](https://discuss.elastic.co/u/Alexey_Sharov)\
**Post date:** [July 18, 2015, 7:28am UTC](https://discuss.elastic.co/t/create-delete-index-speedup-for-integration-tests/25766/5 "2015-07-18T07:28:29Z")

</div>

Bulk for creating indices?(not documents)

---

<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, 12:00am UTC](https://discuss.elastic.co/t/create-delete-index-speedup-for-integration-tests/25766/6 "2017-07-06T00:00:38Z")

</div>


