db.printCollectionStats()

db.printCollectionStats()

Provides a wrapper around the db.collection.stats() method. 提供db.collection.stats()方法的包装。Returns statistics from every collection separated by three hyphen characters.返回由三个连字符分隔的每个集合的统计信息。

Note注意

The db.printCollectionStats() method run in mongosh does not return JSON. mongosh中运行的db.printCollectionStats()方法返回JSONUse db.printCollectionStats() for manual inspection, and db.collection.stats() in scripts.使用db.printCollectionStats()进行手动检查,并在脚本中使用db.collection.stats()

Tip提示
See also: 参阅:
←  db.logout()db.printReplicationInfo() →