# Search in many indices is too slow

**URL:** <https://discuss.elastic.co/t/search-in-many-indices-is-too-slow/166554>\
**Category:** Elasticsearch\
**Created:** [January 31, 2019, 12:52pm UTC](https://discuss.elastic.co/t/search-in-many-indices-is-too-slow/166554 "2019-01-31T12:52:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZY2zZ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zy2zz/32/60160_2.png) [@ZY2zZ](https://discuss.elastic.co/u/ZY2zZ)\
**Post date:** [January 31, 2019, 12:52pm UTC](https://discuss.elastic.co/t/search-in-many-indices-is-too-slow/166554/1 "2019-01-31T12:52:55Z")

</div>

I try to search in a index,it only spends 9-20ms,But if i search in mutiple indices,it spends a long time(about 110-240ms. Isn't it parallel？ And when i use the profile API,i find that next\_doc spents the most time,how can i solve this problem.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 31, 2019, 1:00pm UTC](https://discuss.elastic.co/t/search-in-many-indices-is-too-slow/166554/2 "2019-01-31T13:00:31Z")

</div>

How many indices and shards are you querying?

What is the specification of your cluster with respect to nodes, RAM, CPU cores and storage?

Which version are you running?

---

<div class="post-metadata">

**Author:** ![ZY2zZ](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zy2zz/32/60160_2.png) [@ZY2zZ](https://discuss.elastic.co/u/ZY2zZ)\
**Post date:** [January 31, 2019, 1:32pm UTC](https://discuss.elastic.co/t/search-in-many-indices-is-too-slow/166554/3 "2019-01-31T13:32:00Z")

</div>

It's about thirty indices and there are 5 primary shards,no replic shards,version is 5.5.3.  
 ![20190131212937](https://us1.discourse-cdn.com/elastic/original/3X/3/c/3c5a267956aedf7104273d660e19fba9e237836b.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/8/681eee8a3da9b95fb8a88fc7925252e771df268a.png)

---

<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:** [February 28, 2019, 1:32pm UTC](https://discuss.elastic.co/t/search-in-many-indices-is-too-slow/166554/4 "2019-02-28T13:32:05Z")

</div>

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