Understanding Query Targeting

What is the difference between:

  • Query Targeting: Scanned Objects / Returned
  • Query Targeting: Scanned / Returned

image

I’d understand one of them means:

mongo had to load & scan X documents in order to return Y documents

…so the targeting is X/Y

But what I don’t understand is the difference between the two. They usually raise together but sometimes only one of them goes up :thinking:

Any clearance would be appreciated.

Hi @Ikar_Pohorsky and welcome in the MongoDB Community :muscle: !

I think what you are looking for is in this doc: https://docs.atlas.mongodb.com/review-available-metrics/

Cheers,
Maxime.

2 Likes

Thanks @MaBeuLux88 for the clarification! Here’s a follow-up question:
https://www.mongodb.com/community/forums/t/how-to-find-queries-with-high-query-targeting/127779

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