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

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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v1.3.17, mongodb-3.0
    • Component/s: manual
    • Labels:
      None
    • Last comment by Customer:
      true
    • Actual Time:
      4
    • Sprint:
      v1.3.17 - Ending 1/30

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

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

      See linked.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.paik Michael Paik
              Reporter:
              michael.paik Michael Paik
              Participants:
              Last commenter:
              Jonathan Dahl Jonathan Dahl
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                6 years, 35 weeks, 3 days ago
                Date of 1st Reply: