# Does search perform faster if we use a lower number for setResultsPerPage() in Search-UI?

**URL:** <https://discuss.elastic.co/t/does-search-perform-faster-if-we-use-a-lower-number-for-setresultsperpage-in-search-ui/313615>\
**Category:** Elastic Search\
**Created:** [September 4, 2022, 4:41am UTC](https://discuss.elastic.co/t/does-search-perform-faster-if-we-use-a-lower-number-for-setresultsperpage-in-search-ui/313615 "2022-09-04T04:41:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beratna](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Beratna](https://discuss.elastic.co/u/Beratna)\
**Post date:** [September 4, 2022, 4:41am UTC](https://discuss.elastic.co/t/does-search-perform-faster-if-we-use-a-lower-number-for-setresultsperpage-in-search-ui/313615/1 "2022-09-04T04:41:14Z")

</div>

Hello there,

Currently using App Search with search-ui react library and was wondering if using a small number for the setResultsPerPage function reduces search time.

Thanks!

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [September 6, 2022, 5:20pm UTC](https://discuss.elastic.co/t/does-search-perform-faster-if-we-use-a-lower-number-for-setresultsperpage-in-search-ui/313615/2 "2022-09-06T17:20:57Z")

</div>

I don't know off of the top of my head. I **suspect** that the answer is no, it does not affect the query performance.

---

<div class="post-metadata">

**Author:** ![Beratna](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Beratna](https://discuss.elastic.co/u/Beratna)\
**Post date:** [September 6, 2022, 11:25pm UTC](https://discuss.elastic.co/t/does-search-perform-faster-if-we-use-a-lower-number-for-setresultsperpage-in-search-ui/313615/3 "2022-09-06T23:25:54Z")

</div>

Gotcha, thanks for the reply!

---

<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:** [October 4, 2022, 11:25pm UTC](https://discuss.elastic.co/t/does-search-perform-faster-if-we-use-a-lower-number-for-setresultsperpage-in-search-ui/313615/4 "2022-10-04T23:25:55Z")

</div>

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