db.printCollectionStats()
db.printCollectionStats()-
Provides a wrapper around the提供一个围绕db.collection.stats()method. Returns statistics from every collection separated by three hyphen characters.db.collection.stats()方法的包装器。返回由三个连字符分隔的每个集合的统计信息。NoteThe在db.printCollectionStats()method run inmongoshdoes not return JSON. Usedb.printCollectionStats()for manual inspection, anddb.collection.stats()in scripts.mongosh中运行的db.printCollectionStats()方法不返回JSON。使用db.printCollectionStats()进行手动检查,并在脚本中使用db.collection.stats()。TipSee also:另请参阅: