# Query taking longer times than expected, possible ways of optimization at query level

**URL:** <https://discuss.elastic.co/t/query-taking-longer-times-than-expected-possible-ways-of-optimization-at-query-level/334221>\
**Category:** Elasticsearch\
**Created:** [May 24, 2023, 12:37pm UTC](https://discuss.elastic.co/t/query-taking-longer-times-than-expected-possible-ways-of-optimization-at-query-level/334221 "2023-05-24T12:37:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [May 24, 2023, 4:25pm UTC](https://discuss.elastic.co/t/query-taking-longer-times-than-expected-possible-ways-of-optimization-at-query-level/334221/2 "2023-05-24T16:25:24Z")

</div>

Hi @nadeem.akhter

This [**answer**](https://discuss.elastic.co/t/which-filter-query-is-good-as-per-performance-wise/140078/2) is old but it may help you. I see that you work with keywords but your query does not use any filter. As the answer below says, it's complicated to give performance advice but maybe following some tips there you can achieve your goal.

---

_[View the full topic](https://discuss.elastic.co/t/query-taking-longer-times-than-expected-possible-ways-of-optimization-at-query-level/334221)._
