翻译或纠错本页面

db.collection.totalSize()

db.collection.totalSize()
返回:The total size in bytes of the data in the collection plus the size of every indexes on the collection.