# Performance impact for mutiple targets

**URL:** <https://discuss.elastic.co/t/performance-impact-for-mutiple-targets/282741>\
**Category:** Elasticsearch\
**Created:** [August 29, 2021, 2:52am UTC](https://discuss.elastic.co/t/performance-impact-for-mutiple-targets/282741 "2021-08-29T02:52:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhua1](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@mhua1](https://discuss.elastic.co/u/mhua1)\
**Post date:** [August 29, 2021, 2:52am UTC](https://discuss.elastic.co/t/performance-impact-for-mutiple-targets/282741/1 "2021-08-29T02:52:07Z")

</div>

For Elasticsearch rollover feature, normally there is an alias for write and the other one for reading. The write alias includes the latest index, but the read one includes all indexes.  
I'm concerning the performance penalty of searching for all indexes. I know that there is per-processing called canmatch to have a precheck. But I'm still concerning the read performance if there are thousands of indexes within the read alias.  
Previously, our application is creating an index every day, in search, it designates the indexes which are required for search based on timestamp rather than search all index by index\*.  
The rollover feature is pretty cool, for the read performance, is there anyone who has experience and best practise.

---

<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:** [August 30, 2021, 1:29am UTC](https://discuss.elastic.co/t/performance-impact-for-mutiple-targets/282741/2 "2021-08-30T01:29:09Z")

</div>

Welcome to our community! 😃

Elasticsearch has smarts built in to skip indices that will not contain data relevant to the query, so this shouldn't be an issue.

---

<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:** [September 27, 2021, 1:29am UTC](https://discuss.elastic.co/t/performance-impact-for-mutiple-targets/282741/3 "2021-09-27T01:29:57Z")

</div>

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