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

Include index key in $indexStats return documents

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.2.0-rc0
    • None
    • Diagnostics
    • None
    • Major Change
    • QuInt A (10/12/15)

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: