adspace


How to determine the size of an index?

Answer Posted / Pankaj Sharma

"To determine the size of an index in MongoDB, you can use the `db.collection.getIndexes()` command, which returns all indexes for a specific collection. You can then check the `size` field in the output to find the size of each index."n

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How did mongodb get its name?

60


what is the command syntax for inserting a document?

62


How to define array in mongoose schema?

79