View Query Performance查看查询性能

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:您还可以查看原始JSON格式的解释详细信息:

Query plan JSON

To learn more about execution plans, see the MongoDB documentation.要了解有关执行计划的更多信息,请参阅MongoDB文档