# Optimal Index size

**URL:** <https://discuss.elastic.co/t/optimal-index-size/4084>\
**Category:** Elasticsearch\
**Created:** [March 11, 2011, 5:24pm UTC](https://discuss.elastic.co/t/optimal-index-size/4084 "2011-03-11T17:24:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![davrob](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@davrob](https://discuss.elastic.co/u/davrob)\
**Post date:** [March 11, 2011, 5:24pm UTC](https://discuss.elastic.co/t/optimal-index-size/4084/1 "2011-03-11T17:24:57Z")

</div>

Hi,

I have read some threads about spliting indexes up and giving them all  
the same alias in order to improve refresh and other performance.

Does anyone have an indication of an ideal index size for best  
performance. My indexes are each currently about 500MB each, if I  
split these up how many indexes should I split into?

Regards,

David.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 12, 2011, 8:07am UTC](https://discuss.elastic.co/t/optimal-index-size/4084/2 "2011-03-12T08:07:06Z")

</div>

500mb indices are quite small, you probably don't need to split them up. Of course (sadly), this depends on many factors. For example, how many documents you have, do you do sorting / faceting, how much memory is allocated to elasticsearch.  
On Friday, March 11, 2011 at 7:24 PM, davrob2 wrote:

> Hi,
> 
> I have read some threads about spliting indexes up and giving them all  
> the same alias in order to improve refresh and other performance.
> 
> Does anyone have an indication of an ideal index size for best  
> performance. My indexes are each currently about 500MB each, if I  
> split these up how many indexes should I split into?
> 
> Regards,
> 
> David.

---

<div class="post-metadata">

**Author:** ![davrob](https://avatars.discourse-cdn.com/v4/letter/d/d78d45/32.png) [@davrob](https://discuss.elastic.co/u/davrob)\
**Post date:** [March 12, 2011, 1:00pm UTC](https://discuss.elastic.co/t/optimal-index-size/4084/3 "2011-03-12T13:00:08Z")

</div>

There are 300,000 to 900,0000 documents in each, small documents. The  
big issue is sorting, we have lots of sorted fields, doing updates  
followed by sorted queries on Compass killed us and is the main reason  
for switching to Elasticsearch. So I'd like to get optimal  
performance on updates in parallel with near real time sorted search  
with, say, 300-500 updates a minute at peak time.

On Mar 12, 8:07 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> 500mb indices are quite small, you probably don't need to split them up. Of course (sadly), this depends on many factors. For example, how many documents you have, do you do sorting / faceting, how much memory is allocated to elasticsearch.
> 
> On Friday, March 11, 2011 at 7:24 PM, davrob2 wrote:
> 
> > Hi,
> 
> > I have read some threads about spliting indexes up and giving them all  
> > the same alias in order to improve refresh and other performance.
> 
> > Does anyone have an indication of an ideal index size for best  
> > performance. My indexes are each currently about 500MB each, if I  
> > split these up how many indexes should I split into?
> 
> > Regards,
> 
> > David.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 12, 2011, 6:56pm UTC](https://discuss.elastic.co/t/optimal-index-size/4084/4 "2011-03-12T18:56:40Z")

</div>

Then there is no need to split them up, just make sure you have enough memory for the sorting option. You can check that using the node stats API, which lists the field cache size (the cache used for sorting). If you start to see evictions there, then its due to memory constraints.  
On Saturday, March 12, 2011 at 3:00 PM, davrob2 wrote:

> There are 300,000 to 900,0000 documents in each, small documents. The  
> big issue is sorting, we have lots of sorted fields, doing updates  
> followed by sorted queries on Compass killed us and is the main reason  
> for switching to Elasticsearch. So I'd like to get optimal  
> performance on updates in parallel with near real time sorted search  
> with, say, 300-500 updates a minute at peak time.
> 
> On Mar 12, 8:07 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > 500mb indices are quite small, you probably don't need to split them up. Of course (sadly), this depends on many factors. For example, how many documents you have, do you do sorting / faceting, how much memory is allocated to elasticsearch.
> > 
> > On Friday, March 11, 2011 at 7:24 PM, davrob2 wrote:
> > 
> > > Hi,
> > 
> > > I have read some threads about spliting indexes up and giving them all  
> > > the same alias in order to improve refresh and other performance.
> > 
> > > Does anyone have an indication of an ideal index size for best  
> > > performance. My indexes are each currently about 500MB each, if I  
> > > split these up how many indexes should I split into?
> > 
> > > Regards,
> > 
> > > David.

---

<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, 4:10am UTC](https://discuss.elastic.co/t/optimal-index-size/4084/5 "2017-07-06T04:10:12Z")

</div>


