# Some performance issue about document type

**URL:** <https://discuss.elastic.co/t/some-performance-issue-about-document-type/47656>\
**Category:** Elasticsearch\
**Created:** [April 18, 2016, 1:20pm UTC](https://discuss.elastic.co/t/some-performance-issue-about-document-type/47656 "2016-04-18T13:20:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bforevdr](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@bforevdr](https://discuss.elastic.co/u/bforevdr)\
**Post date:** [April 18, 2016, 1:20pm UTC](https://discuss.elastic.co/t/some-performance-issue-about-document-type/47656/1 "2016-04-18T13:20:54Z")

</div>

Hi Experts,  
Currently, we are thinking moving our search application to ES, but very clear if the feature of ES can meet our requirement?

We have about 1PB data. We used to classify the data by date, newer data can have more hardware resources (e.g more disks )to speed up search, and we delete data by date, we just keep data of the last three years.

So we want to use \_type to classify data, the \_type is the date( e.g \_type=20160416). We can config different number\_of\_replicas, and we can remove the whole index by removing index under the specific \_type.  
But if we search across thousands of \_types(2013/04/16-2016/04/18, that's thousands of types ) , may it have performance Issues ? And how can we search data from 20150418 to 20160418 by commiting one http request .

Or better way the achieve the goal?

Thanks alot.

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [April 18, 2016, 1:56pm UTC](https://discuss.elastic.co/t/some-performance-issue-about-document-type/47656/2 "2016-04-18T13:56:28Z")

</div>

I would recommend to use different indices per timeframe (with only one type each) rather than different types.

---

<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:58pm UTC](https://discuss.elastic.co/t/some-performance-issue-about-document-type/47656/3 "2017-07-05T22:58:28Z")

</div>


