Navigation
This version of the documentation is archived and no longer supported.

db.collection.dataSize()

db.collection.dataSize()
Returns:The size of the collection (in bytes). This method provides a wrapper around the size output of the collStats (i.e. db.collection.stats()) command.