Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
Description
db.collection.stats(scale) - old behavior. retain for compatibility.
db.collection.stats(options) - options format:
{scale: N, // scales sizes in resultindexDetails: true/false, // toggles display of indexDetails in result. Defaults to falseindexDetailsKey: {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).}
Needs to be updated at db.collection.stats()
See linked.
Attachments
Issue Links
- documents
-
SERVER-16782 Modify collection stats helper to optionally suppress index details
-
- Closed
-
- is duplicated by
-
DOCS-4675 index stats support in db.collection.stats()
-
- Closed
-
- links to