# In a multi tenant application, is it advisable to use types to separate each tenant data

**URL:** <https://discuss.elastic.co/t/in-a-multi-tenant-application-is-it-advisable-to-use-types-to-separate-each-tenant-data/77006>\
**Category:** Elasticsearch\
**Created:** [March 1, 2017, 2:58pm UTC](https://discuss.elastic.co/t/in-a-multi-tenant-application-is-it-advisable-to-use-types-to-separate-each-tenant-data/77006 "2017-03-01T14:58:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ESCoder](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@ESCoder](https://discuss.elastic.co/u/ESCoder)\
**Post date:** [March 1, 2017, 2:58pm UTC](https://discuss.elastic.co/t/in-a-multi-tenant-application-is-it-advisable-to-use-types-to-separate-each-tenant-data/77006/1 "2017-03-01T14:58:12Z")

</div>

Hi,

I'm having an multi tenant application and planning to use one single index to index all customer data. However is it advisable to use map each tenant to a type? What are the pros and cons of this approach.

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 5, 2017, 10:38pm UTC](https://discuss.elastic.co/t/in-a-multi-tenant-application-is-it-advisable-to-use-types-to-separate-each-tenant-data/77006/2 "2017-03-05T22:38:00Z")

</div>

Check out [https://www.elastic.co/blog/index-vs-type](https://www.elastic.co/blog/index-vs-type).

---

<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:** [April 2, 2017, 10:38pm UTC](https://discuss.elastic.co/t/in-a-multi-tenant-application-is-it-advisable-to-use-types-to-separate-each-tenant-data/77006/3 "2017-04-02T22:38:04Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
