Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-4677

Document change in interface for db.collection.stats()

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • v1.3.17, mongodb-3.0
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

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

      Needs to be updated at db.collection.stats()

      See linked.

            Assignee:
            michael.paik Michael Paik
            Reporter:
            michael.paik Michael Paik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              9 years, 15 weeks, 1 day ago