MongoDB Compass Readonly Edition will be deprecated in a future release. To replicate the read-only behavior in a standard Compass edition, assign users read access at the database level and enable the readOnly option in Compass.
为了帮助您更好地了解查询的性能,您可以查看查询的解释计划。
关于此任务
在 Explain Plan 模式中,您可以将解释阶段视为 Visual Tree,即每个查询操作均显示为树上的一个节点。您还可以选择 Raw Output 视图,查看原始 JSON 格式的解释详细信息。
注意
The Explain Plan doesn't show aggregation pipeline stages such as $merge and $out because Compass ignores all out stages from the aggregation before running the explain plan.