db.printCollectionStats()db.collection.stats()メソッドを囲むラッパーを提供します。 すべてのコレクションから 3 つのハイフン文字で区切られた統計情報を返します。注意
The
db.printCollectionStats()method run inmongoshdoes not return JSON. Usedb.printCollectionStats()for manual inspection, anddb.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.
MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン
MongoDB Community: ソースが利用可能で、無料で使用できる自己管理型の MongoDB のバージョン