[SERVER-16782] Modify collection stats helper to optionally suppress index details Created: 08/Jan/15  Updated: 26/Oct/15  Resolved: 15/Jan/15

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 3.0.0-rc6

Type: Improvement Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-16245 Expose index statistics for WiredTiger Closed
is depended on by SERVER-16870 Suppress indexDetails from sharded co... Closed
is depended on by DOCS-4675 index stats support in db.collection.... Closed
Documented
is documented by DOCS-4677 Document change in interface for db.c... Closed
Tested
Backwards Compatibility: Fully Compatible
Participants:

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



 Comments   
Comment by Githook User [ 16/Jan/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-16782 SERVER-16870 refactor db.collection.stats()
Branch: master
https://github.com/mongodb/mongo/commit/1aa110cc7fc83517a5a428feb7783cd37375226c

Comment by Githook User [ 15/Jan/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-16782 db.collection.stats() supports toggling of indexDetails and display of single index stats.
Branch: master
https://github.com/mongodb/mongo/commit/24daf1360e9bda29bf14eb209fa32d85e673a5a7

Comment by Githook User [ 15/Jan/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-16782 fixed db.collection shell helper test to work with sharding passthrough test. also removed db.collection.clean() shell helper
Branch: master
https://github.com/mongodb/mongo/commit/14424674ca204de09b8f9b37fc007cbde81d1bc9

Generated at Thu Feb 08 03:42:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.