Navigation
This version will reach end of life on Feb 2018. To upgrade, go to the Learn more about upgrading your version of MongoDB.

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.