Navigation
This version of the documentation is archived and no longer supported.
Reference
>
JavaScript Methods
>
db.collection.totalSize()
db.collection.totalSize()
¶
db.collection.
totalSize
(
)
¶
Returns:
The total size of the data in the collection plus the size of every indexes on the collection.
←
db.collection.totalIndexSize()
db.collection.update()
→