To return information on query plans and execution statistics of the query plans, MongoDB provides the following methods: db.collection.explain() cursor.explain() To learn about important explain result fields and how to interpret them, see Interpret Explain Plan Results. explain ignores the plan cache. Instead, a set of candidate plans are generated, and a winner is chosen without consulting the
{{#tags}}- {{label}}
{{/tags}}