Docs HomeMongoDB Compass

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

Visual Tree可视化树

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

Raw JSON原始JSON

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文档

Limitations局限性