Description
db.collection.stats(scale) - old behavior. retain for compatibility.
db.collection.stats(options) - options format:
{
|
scale: N, // scales sizes in result
|
indexDetails: true/false, // toggles display of indexDetails in result. Defaults to false
|
indexDetailsKey: {x: 1}, // requires indexDetails to be true. filters indexDetails subdocument to display single index corresponding to given index key (uses getIndexes() output)
|
indexDetailsName: "x_1", // requires indexDetails to be true. filters indexDetails subdocument to display single index corresponding to given index name (uses getIndexes() output).
|
}
|
Attachments
Issue Links
- depends on
-
SERVER-16245 Expose index statistics for WiredTiger
-
- Closed
-
- is depended on by
-
SERVER-16870 Suppress indexDetails from sharded collstats in shell
-
- Closed
-
-
DOCS-4675 index stats support in db.collection.stats()
-
- Closed
-
- is documented by
-
DOCS-4677 Document change in interface for db.collection.stats()
-
- Closed
-
- links to