- Reference >
mongoShell Methods >- Collection Methods >
- db.collection.totalIndexSize()
db.collection.totalIndexSize()¶
-
db.collection.totalIndexSize()¶ Returns: The total size of all indexes for the collection. This method provides a wrapper around the totalIndexSizeoutput of thecollStats(i.e.db.collection.stats()) operation.