Saturday 21 February 2015

mongoDB : Get size of all indexes for the collection


db.collection.storageSize() method returns the total size of all indexes for the collection.

> db.students.totalIndexSize()
324456384

Students collection occupies 324 megabytes approximately for all its indexes.


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment