Docs Menu

Docs HomeMongoDB Compass

View Query Performance

On this page

  • Visual Tree
  • Raw JSON
  • Limitations

The Explain Plan tab displays the execution plan for a query.

To view the execution plan for a query filter, click on the collection on the left hand pane, then click Explain Plan.

Query plan

You can view the explain stages in a tree format. Each stage of the pipeline appears as a node on the tree. This makes sharded cluster outputs easier to understand and visualize.

Explain tree

You can also view the explain details in raw JSON format:

Query plan JSON

To learn more about execution plans, see the MongoDB documentation.

←  Limit the Number of Returned DocumentsExport Query to Specific Language →
Share Feedback