OPTIONS

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.

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.