Quantcast
Channel: Active questions tagged mongodb-atlas - Stack Overflow
Viewing all articles
Browse latest Browse all 271

"Query Targeting: Scanned Objects / Returned" Exceeding 1000 – How to Fix?

$
0
0

I'm using MongoDB Atlas and noticed a warning in the Performance Advisor and monitoring dashboard:

"Query Targeting: Scanned Objects / Returned" has gone above 1000

From my understanding, this means my queries are scanning too many documents relative to the number of results returned, which could impact performance.

I'd like to understand:

  1. What causes this metric to spike?

  2. How can I identify which query or queries are triggering this?

  3. What are the best practices to optimize such queries?

  4. Should I create new indexes or modify existing ones? If so, how canI determine the right fields?

Any guidance, especially around debugging this within Atlas and applying the right indexes, would be much appreciated.

Thanks!


Viewing all articles
Browse latest Browse all 271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>