# General elastic performance when search\_after with PIT sorted by score is used for UI pagination

**URL:** <https://discuss.elastic.co/t/general-elastic-performance-when-search-after-with-pit-sorted-by-score-is-used-for-ui-pagination/287238>\
**Category:** Elasticsearch\
**Tags:** point-in-time\
**Created:** [October 20, 2021, 11:00pm UTC](https://discuss.elastic.co/t/general-elastic-performance-when-search-after-with-pit-sorted-by-score-is-used-for-ui-pagination/287238 "2021-10-20T23:00:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vjgorla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vjgorla/32/95775_2.png) [@vjgorla](https://discuss.elastic.co/u/vjgorla)\
**Post date:** [October 20, 2021, 11:00pm UTC](https://discuss.elastic.co/t/general-elastic-performance-when-search-after-with-pit-sorted-by-score-is-used-for-ui-pagination/287238/1 "2021-10-20T23:00:14Z")

</div>

We are integrating search\_after query to our UI pagination. If we use PIT and keep the search context alive between UI page fetches, which could be minutes depending on user think time, would that scale well?. We have to support at least a few hundred concurrent users.

Also how would that affect other searches and the background ingestion process?. Documentation says lucene segment merging is impacted by open PIT contexts. We have a fairly rapidly changing large index.

---

<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:** [October 26, 2021, 9:17pm UTC](https://discuss.elastic.co/t/general-elastic-performance-when-search-after-with-pit-sorted-by-score-is-used-for-ui-pagination/287238/2 "2021-10-26T21:17:13Z")

</div>

This has been answered in [Inconsistent results when search\_after is used for pagination sorted by score and id](https://discuss.elastic.co/t/inconsistent-results-when-search-after-is-used-for-pagination-sorted-by-score-and-id/286554)

---

<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:** [October 26, 2021, 9:17pm UTC](https://discuss.elastic.co/t/general-elastic-performance-when-search-after-with-pit-sorted-by-score-is-used-for-ui-pagination/287238/3 "2021-10-26T21:17:16Z")

</div>


