# Performance Help

**URL:** <https://discuss.elastic.co/t/performance-help/44025>\
**Category:** Elasticsearch\
**Created:** [March 10, 2016, 12:14pm UTC](https://discuss.elastic.co/t/performance-help/44025 "2016-03-10T12:14:17Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![rusty](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@rusty](https://discuss.elastic.co/u/rusty)\
**Post date:** [March 10, 2016, 3:35pm UTC](https://discuss.elastic.co/t/performance-help/44025/7 "2016-03-10T15:35:01Z")

</div>

> [@tgdesrochers](#):
>
> My data is 5 shards 3 replicas at this time.

First, do you really need so many replicas? Try do decrease it to 1 or 0 and see if it helps (now you index your data 4 times, 1 for primary and same for each replica).  
Second one, as in topic I mentioned disable `_all` field if you don't plan to use it.

> [@tgdesrochers](#):
>
> I currently use dynamic templates and I am thinking of creating a custom template and defineing my fields to see if that helps.

If your data structure is predictable this will be great as you get full control of any field (type, analizer, doc\_values and so on). Maybe disabling `doc_values` for fields which will never take part in aggregation would be good and give some speedup. Also exclude from indexing (`index: no`) if don't plan to search or filer on them.

You can also look at setting and discussion in [ES indexing rate varies horribly](https://discuss.elastic.co/t/es-indexing-rate-varies-horribly/38414/1)

---

_[View the full topic](https://discuss.elastic.co/t/performance-help/44025)._
