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.
- is documented by
-
DOCS-9448 Consider documenting how statistics for views are tracked in top/histogram
- Closed
- related to
-
SERVER-25128 $collStats and $indexStats cannot be used on a view with a non-empty pipeline
- Closed