Include index key in $indexStats return documents

XMLWordPrintableJSON

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

      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
            Reporter:
            Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: