# Number of indexes vs index size

**URL:** <https://discuss.elastic.co/t/number-of-indexes-vs-index-size/8324>\
**Category:** Elasticsearch\
**Created:** [July 5, 2012, 9:36am UTC](https://discuss.elastic.co/t/number-of-indexes-vs-index-size/8324 "2012-07-05T09:36:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Fairs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dan_fairs/32/1205_2.png) [@Dan\_Fairs](https://discuss.elastic.co/u/Dan_Fairs)\
**Post date:** [July 5, 2012, 9:36am UTC](https://discuss.elastic.co/t/number-of-indexes-vs-index-size/8324/1 "2012-07-05T09:36:09Z")

</div>

Hi,

What's the tradeoff between number of indexes, and number of documents in each index?

We're going to be indexing tweets about events. Some events just have a few tweets (zero, or less than ten) where as some events have millions. Most events will tend towards the lower end of the spectrum - it's rare to get an event with more than a couple of hundred thousand tweets.

We tend to do analysis on a per-event basis, and we also envisage (eventually) expiring old events from the system (we can always reload the data, if we need them.) We expect to have around 700 events per day.

Do you guys have any thoughts on what a sensible index strategy might be? I don't think One Big Index is a good design choice, from an operational point of view - as we're exploring ES I expect we'll occasionally have to reindex things, and I'd like to be able to do that incrementally, event by event (or at least by groups of events - say a day's worth).

However, I've also seen references in the docs to an overhead incurred by each index, though I've not seen what that overhead is. I therefore suspect that the 700-odd indexes per day created by an index-per-event strategy is also unwise.

I'm inclined, therefore, to start out with an index per day. This will usually tend to have a few hundred thousand documents in.

Does that sound reasonable? As I said, I'm really trying to understand what the nature of the tradeoff between index size and quantity of indexes is.

## Cheers, Dan

Dan Fairs | [dan.fairs@gmail.com](mailto:dan.fairs@gmail.com) | @danfairs | [www.fezconsulting.com](http://www.fezconsulting.com)

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [July 5, 2012, 10:38am UTC](https://discuss.elastic.co/t/number-of-indexes-vs-index-size/8324/2 "2012-07-05T10:38:48Z")

</div>

> Does that sound reasonable? As I said, I'm really trying to understand  
> what the nature of the tradeoff between index size and quantity of  
> indexes is.

That does sound reasonable. Also, check out kimchy's talk at Berlin  
Buzzwords a month ago - he talks about scaling strategies:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

clint

---

<div class="post-metadata">

**Author:** ![Dan\_Fairs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dan_fairs/32/1205_2.png) [@Dan\_Fairs](https://discuss.elastic.co/u/Dan_Fairs)\
**Post date:** [July 5, 2012, 12:01pm UTC](https://discuss.elastic.co/t/number-of-indexes-vs-index-size/8324/3 "2012-07-05T12:01:59Z")

</div>

> > Does that sound reasonable? As I said, I'm really trying to understand  
> > what the nature of the tradeoff between index size and quantity of  
> > indexes is.
> 
> That does sound reasonable. Also, check out kimchy's talk at Berlin  
> Buzzwords a month ago - he talks about scaling strategies:
> 
> [Elastic — The Search AI Company | Elastic](http://www.elasticsearch.org/videos/2012/06/05/big-data-search-and-analytics.html)

Thanks for the feedback, Clint - good to know I'm at least in the right ballpark!

I shall don the headphones forthwith.

## Cheers, Dan

Dan Fairs | [dan.fairs@gmail.com](mailto:dan.fairs@gmail.com) | @danfairs | [www.fezconsulting.com](http://www.fezconsulting.com)

---

<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, 3:21am UTC](https://discuss.elastic.co/t/number-of-indexes-vs-index-size/8324/4 "2017-07-06T03:21:25Z")

</div>

Closed on July 6, 2017, 3:21am UTC


