30 Jun 2014
mongoDB – Index Size
We can determine index size of a collection by using following command in mongoDB.
Suppose our collection name is “students”.
> db.students.totalIndexSize();
Our index and data both can take space in memory but it is more important that our index fit into the memory.