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

Include index key in $indexStats return documents

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.2.0-rc0
    • Affects Version/s: None
    • Component/s: Diagnostics
    • Labels:
      None
    • Major Change
    • QuInt A (10/12/15)

      Currently the return document is structured without the index keys:

      > db.jstests_index_stats.aggregate([{$indexStats: {}}]).pretty()
      {
      	"name" : "a_1",
      	"ns" : "test.jstests_index_stats",
      	"processName" : "mortar:27017",
      	"usageStats" : {
      		"operations" : NumberLong(5),
      		"validSince" : ISODate("2015-09-21T14:11:56.095Z")
      	}
      }
      

      I think it would be easier for users to see the stats if the keys are included in the return document.

            Assignee:
            james.wahlin@mongodb.com James Wahlin
            Reporter:
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: