# The number of types a index can handle

**URL:** https://discuss.elastic.co/t/the-number-of-types-a-index-can-handle/18966
**Category:** Elasticsearch
**Created:** [July 30, 2014, 5:18am UTC](https://discuss.elastic.co/t/the-number-of-types-a-index-can-handle/18966 "2014-07-30T05:18:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![11149](https://avatars.discourse-cdn.com/v4/letter/1/da6949/32.png) [@11149](https://discuss.elastic.co/u/11149)
#### Post date: [July 30, 2014, 5:18am UTC](https://discuss.elastic.co/t/the-number-of-types-a-index-can-handle/18966/1 "2014-07-30T05:18:56Z")

</div>

index -\> database  
type -\> table (HERE)  
doc -\> row

I want to know is there a limit on the number of types in a index and how  
many is too many ?

--  
不学习，不知道

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CA%2BJstLBXOLeC12wLVmmtBKVyijf6FpyWo%3D4RRetEwA%2B6ajkEdg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CA%2BJstLBXOLeC12wLVmmtBKVyijf6FpyWo%3D4RRetEwA%2B6ajkEdg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 30, 2014, 6:55am UTC](https://discuss.elastic.co/t/the-number-of-types-a-index-can-handle/18966/2 "2014-07-30T06:55:41Z")

</div>

There is no limit in ES.

Each type uses a certain amount of heap for caching ids and the mapping.  
You can create types / mappings until heap explodes. Each modification of a  
mapping is propagated through the cluster, which is not a cheap operation.  
You have to test by yourself if your design works.

Jörg

On Wed, Jul 30, 2014 at 7:18 AM, panfei [cnweike@gmail.com](mailto:cnweike@gmail.com) wrote:

> index -\> database  
> type -\> table (HERE)  
> doc -\> row
> 
> I want to know is there a limit on the number of types in a index and how  
> many is too many ?
> 
> --  
> 不学习，不知道
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CA%2BJstLBXOLeC12wLVmmtBKVyijf6FpyWo%3D4RRetEwA%2B6ajkEdg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CA%2BJstLBXOLeC12wLVmmtBKVyijf6FpyWo%3D4RRetEwA%2B6ajkEdg%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CA%2BJstLBXOLeC12wLVmmtBKVyijf6FpyWo%3D4RRetEwA%2B6ajkEdg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CA%2BJstLBXOLeC12wLVmmtBKVyijf6FpyWo%3D4RRetEwA%2B6ajkEdg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFEvGxxyopggm4i9\_9OgSJ80w6OyaLdMRYjLc6jQ4y9xw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFEvGxxyopggm4i9_9OgSJ80w6OyaLdMRYjLc6jQ4y9xw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![11149](https://avatars.discourse-cdn.com/v4/letter/1/da6949/32.png) [@11149](https://discuss.elastic.co/u/11149)
#### Post date: [July 31, 2014, 2:02am UTC](https://discuss.elastic.co/t/the-number-of-types-a-index-can-handle/18966/3 "2014-07-31T02:02:23Z")

</div>

Thanks for the information

2014-07-30 14:55 GMT+08:00 [joergprante@gmail.com](mailto:joergprante@gmail.com) [joergprante@gmail.com](mailto:joergprante@gmail.com):

> There is no limit in ES.
> 
> Each type uses a certain amount of heap for caching ids and the mapping.  
> You can create types / mappings until heap explodes. Each modification of a  
> mapping is propagated through the cluster, which is not a cheap operation.  
> You have to test by yourself if your design works.
> 
> Jörg
> 
> On Wed, Jul 30, 2014 at 7:18 AM, panfei [cnweike@gmail.com](mailto:cnweike@gmail.com) wrote:
> 
> > index -\> database  
> > type -\> table (HERE)  
> > doc -\> row
> > 
> > I want to know is there a limit on the number of types in a index and how  
> > many is too many ?
> > 
> > --  
> > 不学习，不知道
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CA%2BJstLBXOLeC12wLVmmtBKVyijf6FpyWo%3D4RRetEwA%2B6ajkEdg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CA%2BJstLBXOLeC12wLVmmtBKVyijf6FpyWo%3D4RRetEwA%2B6ajkEdg%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CA%2BJstLBXOLeC12wLVmmtBKVyijf6FpyWo%3D4RRetEwA%2B6ajkEdg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CA%2BJstLBXOLeC12wLVmmtBKVyijf6FpyWo%3D4RRetEwA%2B6ajkEdg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFEvGxxyopggm4i9\_9OgSJ80w6OyaLdMRYjLc6jQ4y9xw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFEvGxxyopggm4i9_9OgSJ80w6OyaLdMRYjLc6jQ4y9xw%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFEvGxxyopggm4i9\_9OgSJ80w6OyaLdMRYjLc6jQ4y9xw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFEvGxxyopggm4i9_9OgSJ80w6OyaLdMRYjLc6jQ4y9xw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
不学习，不知道

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CA%2BJstLD9yQjVss%3D7itx%3DO09njTeb%2BmfcC1v7ymGPxJ-nxpaxEg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CA%2BJstLD9yQjVss%3D7itx%3DO09njTeb%2BmfcC1v7ymGPxJ-nxpaxEg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:12am UTC](https://discuss.elastic.co/t/the-number-of-types-a-index-can-handle/18966/4 "2017-07-06T01:12:04Z")

</div>


