OPTIONS

db.collection.dataSize()

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

Was this page helpful?

Yes No

Thank you for your feedback!

We're sorry! You can Report a Problem to help us improve this page.