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

index stats support in db.collection.stats()

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • 01112017-cleanup
    • Affects Version/s: mongodb-3.0
    • Component/s: manual
    • Labels:
      None

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

            Assignee:
            michael.paik Michael Paik
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              9 years, 13 weeks, 4 days ago