[SERVER-24568] Reflect operations on views in their collStats Created: 14/Jun/16  Updated: 02/Dec/16  Resolved: 02/Aug/16

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 3.3.11

Type: Improvement Priority: Major - P3
Reporter: Geert Bosch Assignee: Kevin Albertson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-9448 Consider documenting how statistics f... Closed
Related
related to SERVER-25128 $collStats and $indexStats cannot be ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Integrate+Tuning 16 (06/24/16), Integration 17 (07/15/16), Integration 18 (08/05/16)
Participants:

 Description   

When executing queries on views, they should be counted both on the underlying collection and on the view itself. It is important to see operations on the underlying collection to decide on indexes etc, and it is important to see operations on the view to know where they come from.



 Comments   
Comment by Kevin Albertson [ 02/Aug/16 ]

We may need to document the behavior of $collStats on a view since it may not be obvious that the histogram statistics collected are operations which occurred through the view. Other operations occurring on the underlying collection without using the view will not show in the view histograms.

Comment by Githook User [ 02/Aug/16 ]

Author:

{u'username': u'kevinAlbs', u'name': u'Kevin Albertson', u'email': u'kevin.albertson@10gen.com'}

Message: SERVER-24568 Record stats and fix $collStats for views
Branch: master
https://github.com/mongodb/mongo/commit/1d52ab57743f8666682a99d75f47938d09f5aa5f

Comment by Kyle Suarez [ 22/Jul/16 ]

We should review the output of serverStatus, ensuring that whenever statistics on collections are present, views are included as well.

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