AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

db.printCollectionStats()(mongoshメソッド)

db.printCollectionStats()

db.collection.stats()メソッドを囲むラッパーを提供します。 すべてのコレクションから 3 つのハイフン文字で区切られた統計情報を返します。

注意

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.

  • MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン

  • MongoDB Community: ソースが利用可能で、無料で使用できる自己管理型の MongoDB のバージョン

このページを評価

項目一覧