[DOCS-4675] index stats support in db.collection.stats() Created: 15/Jan/15  Updated: 04/Mar/23  Resolved: 02/Feb/15

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: mongodb-3.0
Fix Version/s: 01112017-cleanup

Type: Task Priority: Minor - P4
Reporter: Benety Goh Assignee: Michael Paik
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-16782 Modify collection stats helper to opt... Closed
Duplicate
duplicates DOCS-4677 Document change in interface for db.c... Closed
Participants:
Days since reply: 9 years, 2 weeks, 4 days ago

 Description   

http://docs.mongodb.org/manual/reference/method/db.collection.stats/

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).
} 



 Comments   
Comment by Daniel Pasette (Inactive) [ 31/Jan/15 ]

is this a duplicate of DOCS-4677?

Generated at Thu Feb 08 07:48:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.