On this page
db.printCollectionStats()
db.
printCollectionStats
( )- 提供围绕db.collection.stats()方法的包装。返回每个集合的统计信息,每个集合用三个连字符隔开。
Note
mongo shell 中的db.printCollectionStats()不**返回JSON。使用db.printCollectionStats()进行手动检查,并使用db.collection.stats()编写脚本。
See also