> For the complete documentation index, see [llms.txt](https://docs.digma.ai/digma-developer-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digma.ai/digma-developer-guide/digma-features/insights/query-optimization-suggested.md).

# Query Optimization Suggested

<figure><img src="/files/BMZC1REUtHHHEyT21zMW" alt=""><figcaption></figcaption></figure>

### Description

This query has been found to be especially slow compared to other queries of the same type running against the same DB. Consider optimizing this query or caching it.
