totalIndexSize() –Return the total size, in bytes, of all indexes on a collection command
Returns the total size, in bytes, of all indexes on a collection.
Syntax diagram
Command parameters
- query
- Does not take a query filter.
Example
The following example shows the command syntax for returning the total size, in bytes, of all
indexes on the collection,
members
:db.members.totalIndexSize()
The following example
shows a returned value from running the totalIndexSize
command:1018