# The speed for Query "Time-Based-Index" and without "Time-Based" （Ordinary）index

**URL:** <https://discuss.elastic.co/t/the-speed-for-query-time-based-index-and-without-time-based-ordinary-index/181780>\
**Category:** Elasticsearch\
**Created:** [May 20, 2019, 9:52am UTC](https://discuss.elastic.co/t/the-speed-for-query-time-based-index-and-without-time-based-ordinary-index/181780 "2019-05-20T09:52:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ennian001](https://avatars.discourse-cdn.com/v4/letter/e/779978/32.png) [@ennian001](https://discuss.elastic.co/u/ennian001)\
**Post date:** [May 20, 2019, 9:52am UTC](https://discuss.elastic.co/t/the-speed-for-query-time-based-index-and-without-time-based-ordinary-index/181780/1 "2019-05-20T09:52:51Z")

</div>

Query for "Time-Based-index" and without "Time-Based" index.  
My "Time-Based-INdex" Rules Like this "test-index-2019.05.20",but it contains so many days,and the Time-Based-index by days , if i get query for the following example  
"Get test-index-\*/\_search" , Is the Query Speed as the same as the INdex without "Time-Based" ? like this "Get test-index/\_search"  
please tell me the answer. Thank you.

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [May 20, 2019, 12:33pm UTC](https://discuss.elastic.co/t/the-speed-for-query-time-based-index-and-without-time-based-ordinary-index/181780/2 "2019-05-20T12:33:07Z")

</div>

> [@ennian001](#):
>
> Is the Query Speed as the same as the INdex without "Time-Based" ?

"It depends" as we are fond of saying.  
In a large dataset there are benefits to parallelising queries across many machines.  
In a small dataset, less so.  
Benchmarking is the way to decide what configuration suits your use case. Pay attention to the number of shards you choose for each index too - querying 5 time-based indices that each use a single shard is no different to searching a single index that uses 5 shards.

---

<div class="post-metadata">

**Author:** ![ennian001](https://avatars.discourse-cdn.com/v4/letter/e/779978/32.png) [@ennian001](https://discuss.elastic.co/u/ennian001)\
**Post date:** [May 20, 2019, 3:29pm UTC](https://discuss.elastic.co/t/the-speed-for-query-time-based-index-and-without-time-based-ordinary-index/181780/4 "2019-05-20T15:29:57Z")

</div>

Thank for your answer .  
If it's just 1 shard and 3600 "time-based" indices compare to 1 shard 1 index ，and i query like following example "Get test-index-\*/\_search" compare to "Get test-index/\_search" ，Will the "1 shard 1 index" be faster ? My production data size is about 200 G.  
Thank you again.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 20, 2019, 3:42pm UTC](https://discuss.elastic.co/t/the-speed-for-query-time-based-index-and-without-time-based-ordinary-index/181780/5 "2019-05-20T15:42:55Z")

</div>

It depends 😉  
But I'd try with something between 4 to 10 shards in total.

---

<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:** [June 17, 2019, 3:43pm UTC](https://discuss.elastic.co/t/the-speed-for-query-time-based-index-and-without-time-based-ordinary-index/181780/6 "2019-06-17T15:43:05Z")

</div>

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