# Term query by \_id very slow (30s+) occasionally

**URL:** <https://discuss.elastic.co/t/term-query-by-id-very-slow-30s-occasionally/343305>\
**Category:** Elasticsearch\
**Created:** [September 18, 2023, 11:33pm UTC](https://discuss.elastic.co/t/term-query-by-id-very-slow-30s-occasionally/343305 "2023-09-18T23:33:02Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![May\_Zeng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/may_zeng/32/123964_2.png) [@May\_Zeng](https://discuss.elastic.co/u/May_Zeng)\
**Post date:** [September 26, 2023, 8:10pm UTC](https://discuss.elastic.co/t/term-query-by-id-very-slow-30s-occasionally/343305/21 "2023-09-26T20:10:48Z")

</div>

> [@Christian\_Dahlqvist](#):
>
> No, that kind of separation is not possible.

Thanks for the confirmation about this.  
Good news: as IO is the bottleneck and most of the data are not required real time, I increased refresh\_interval from default (1s) to 10s. This makes the different type of queries performance max from 20s+ to 4s.

---

<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 24, 2023, 8:11pm UTC](https://discuss.elastic.co/t/term-query-by-id-very-slow-30s-occasionally/343305/22 "2023-10-24T20:11:03Z")

</div>

Closed on October 24, 2023, 8:11pm UTC

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

[Previous page](https://discuss.elastic.co/t/term-query-by-id-very-slow-30s-occasionally/343305.md?page=1)
