# Performance of Elasticsearch based on number of doc counts

**URL:** <https://discuss.elastic.co/t/performance-of-elasticsearch-based-on-number-of-doc-counts/54902>\
**Category:** Elasticsearch\
**Created:** [July 7, 2016, 6:05am UTC](https://discuss.elastic.co/t/performance-of-elasticsearch-based-on-number-of-doc-counts/54902 "2016-07-07T06:05:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KaranPanchal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karanpanchal/32/10477_2.png) [@KaranPanchal](https://discuss.elastic.co/u/KaranPanchal)\
**Post date:** [July 7, 2016, 6:05am UTC](https://discuss.elastic.co/t/performance-of-elasticsearch-based-on-number-of-doc-counts/54902/1 "2016-07-07T06:05:00Z")

</div>

Hi, I am using Elasticsearch 2.2.0. I want to know that, will Elasticsearch compromise with the search performance if we index data on a single index with doc counts of more than 30,00,000 events. (doc counts can be more than 30,00,000).

If Elasticsearch compromises with the performance, then what will be the best way to index data as search performance is our highest priority.

Queries that will be applied on this data, will have two level or three level aggregations and filtering on multiple sourcetypes.

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 7, 2016, 6:20am UTC](https://discuss.elastic.co/t/performance-of-elasticsearch-based-on-number-of-doc-counts/54902/2 "2016-07-07T06:20:21Z")

</div>

I'm not sure what you're asking here. Will Elasticsearch be slower the more documents you have in the index? Yes, of course. Will it matter in your case? That depends on many factors.

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [July 7, 2016, 11:54am UTC](https://discuss.elastic.co/t/performance-of-elasticsearch-based-on-number-of-doc-counts/54902/3 "2016-07-07T11:54:12Z")

</div>

Have you taken any measures to find out? What configuration (hardware, software) do yo use? What do you mean by "the performance" - throughput? peak performance? average search time?

---

<div class="post-metadata">

**Author:** ![KaranPanchal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karanpanchal/32/10477_2.png) [@KaranPanchal](https://discuss.elastic.co/u/KaranPanchal)\
**Post date:** [July 11, 2016, 7:08am UTC](https://discuss.elastic.co/t/performance-of-elasticsearch-based-on-number-of-doc-counts/54902/4 "2016-07-11T07:08:56Z")

</div>

We have hardware configuration as follows:  
8 core CPU, 64 GB RAM, ES\_HEAP\_SIZE variable set to 31 GB

I am interested in "Average Search Time" in performance.

Moreover, We are upgrading Elasticsearch from 2.2.0 to 2.3. Will this step, results in fast execution of queries??

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 5, 2017, 10:36pm UTC](https://discuss.elastic.co/t/performance-of-elasticsearch-based-on-number-of-doc-counts/54902/5 "2017-07-05T22:36:42Z")

</div>


