- Reference >
mongoShell Methods >- Collection Methods >
- db.collection.storageSize()
db.collection.storageSize()¶
-
db.collection.storageSize()¶ Returns: The total amount of storage allocated to this collection for document storage. Provides a wrapper around the storageSizefield of thecollStats(i.e.db.collection.stats()) output.