# Msearch/mpercolate Is there a limit on queries?

**URL:** <https://discuss.elastic.co/t/msearch-mpercolate-is-there-a-limit-on-queries/41219>\
**Category:** Elasticsearch\
**Created:** [February 8, 2016, 7:59pm UTC](https://discuss.elastic.co/t/msearch-mpercolate-is-there-a-limit-on-queries/41219 "2016-02-08T19:59:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KiranbPatil](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@KiranbPatil](https://discuss.elastic.co/u/KiranbPatil)\
**Post date:** [February 8, 2016, 7:59pm UTC](https://discuss.elastic.co/t/msearch-mpercolate-is-there-a-limit-on-queries/41219/1 "2016-02-08T19:59:36Z")

</div>

Hi,

msearch and mpercolate allow querying multiple documents in one API call. Is there a limit on the number of queries which can passed to these APIs?

And has any one noticed any performance issues on using these APIs?

Thanks! K

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [February 8, 2016, 8:27pm UTC](https://discuss.elastic.co/t/msearch-mpercolate-is-there-a-limit-on-queries/41219/2 "2016-02-08T20:27:17Z")

</div>

> [@KiranbPatil](#):
>
> Is there a limit on the number of queries which can passed to these APIs?

I took a quick look at msearch and didn't see a limit on the number of requests. You might want to try it - its probably not worth using larger requests than you see providing any value with your data. I suspect there is a practical limit you'd bump into based on thread pools.

---

<div class="post-metadata">

**Author:** ![KiranbPatil](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@KiranbPatil](https://discuss.elastic.co/u/KiranbPatil)\
**Post date:** [February 8, 2016, 9:14pm UTC](https://discuss.elastic.co/t/msearch-mpercolate-is-there-a-limit-on-queries/41219/3 "2016-02-08T21:14:53Z")

</div>

Thanks Nik!  
Can you also confirm if the behaviour is same for mpercolate API as well?

---

<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, 11:18pm UTC](https://discuss.elastic.co/t/msearch-mpercolate-is-there-a-limit-on-queries/41219/4 "2017-07-05T23:18:11Z")

</div>


