对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

db.printCollectionStats()(mongosh方法)

db.printCollectionStats()

提供db.collection.stats()方法的包装器。 返回由三个连字符分隔的每个collection的统计信息。

注意

The db.printCollectionStats() method run in mongosh does not return JSON. Use db.printCollectionStats() for manual inspection, and db.collection.stats() in scripts.

此方法可用于以下环境中托管的部署:

  • MongoDB Atlas: The fully managed service for MongoDB deployments in the cloud

注意

This command is supported in all MongoDB Atlas clusters. For information on Atlas support for all commands, see Unsupported Commands.

给本页内容打分

在此页面上