Docs
Drivers
University
Community
Blog
Enterprise
Download
Contact
OPTIONS
Version
Select Version
3.2 (current)
3.0
2.6
2.4
2.2
Formats
PDF
EPUB
Contribute
Report a Problem
Edit on Github
Reference
>
mongo
Shell Methods
>
Collection Methods
>
db.collection.totalSize()
db.collection.totalSize()
¶
db.collection.
totalSize
(
)
¶
Returns:
The total size in bytes of the data in the collection plus the size of every indexes on the collection.
←
db.collection.storageSize()
db.collection.totalIndexSize()
→
Report a Problem