Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-16782

Modify collection stats helper to optionally suppress index details

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0-rc6
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • Fully Compatible

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

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: