[SERVER-25948] dbStats should indicate number of views Created: 02/Sep/16  Updated: 24/Oct/19  Resolved: 16/Sep/16

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: 3.3.12
Fix Version/s: 3.3.14

Type: Improvement Priority: Major - P3
Reporter: Kyle Suarez Assignee: James Wahlin
Resolution: Done Votes: 0
Labels: neweng, read-only-views, todo_in_code
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-26110 Report # of collections and views in ... Closed
Related
related to SERVER-43510 Complete TODO listed in SERVER-25948 Closed
related to SERVER-44226 Complete TODO listed in SERVER-25948 Closed
Backwards Compatibility: Fully Compatible
Sprint: Integration 2016-09-19, Integration 2016-10-10
Participants:

 Description   

The presence of views should affect the dbStats command – either they get counted as collections, or are listed as views in a separate stat.



 Comments   
Comment by Githook User [ 16/Sep/16 ]

Author:

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

Message: SERVER-25948 dbStats should indicate number of views
Branch: master
https://github.com/mongodb/mongo/commit/f4600bb330c1ed7975fe4ec7562dbda40efb2d8f

Comment by James Wahlin [ 14/Sep/16 ]

The "views" metric will only be added to mongoD dbstats, which is inline with our reporting of "collections". SERVER-26110 has been entered to request addition of both metrics to mongoS dbstats.

Comment by James Wahlin [ 13/Sep/16 ]

We are tentatively planning on adding a "views" field below "collections" to track the # of views in a database. Sample output:

> db.stats()
{
	"db" : "test",
	"collections" : 2,
        "views": 4,
	"objects" : 11,
	"avgObjSize" : 82.27272727272727,
	"dataSize" : 905,
	"storageSize" : 69632,
	"numExtents" : 0,
	"indexes" : 2,
	"indexSize" : 69632,
	"ok" : 1
}
> 

Generated at Thu Feb 08 04:10:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.