[SERVER-20520] Include index key in $indexStats return documents Created: 21/Sep/15  Updated: 22/Mar/17  Resolved: 07/Oct/15

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: None
Fix Version/s: 3.2.0-rc0

Type: Improvement Priority: Minor - P4
Reporter: Daniel Pasette (Inactive) Assignee: James Wahlin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to DOCS-6147 Create documentation $indexStats aggr... Closed
Backwards Compatibility: Major Change
Sprint: QuInt A (10/12/15)
Participants:

 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.



 Comments   
Comment by Githook User [ 07/Oct/15 ]

Author:

{u'username': u'jameswahlin', u'name': u'James Wahlin', u'email': u'james.wahlin@10gen.com'}

Message: SERVER-20520 Include index key in $indexStats return documents
Branch: master
https://github.com/mongodb/mongo/commit/ec97a61067e2dc3f9c4e58a9d66b5e1f2600f978

Generated at Thu Feb 08 03:54:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.