Skip to content

Commit 0922406

Browse files
author
Dave
authored
DOCS-14895 improved operator counter precision (#389)
* DOCS-14895 improved operator counter precision * Internal review updates
1 parent 9eb873c commit 0922406

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

source/reference/command/serverStatus.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5063,6 +5063,7 @@ metrics
50635063
has been executed.
50645064

50655065
*New in version 4.4 (4.2.6 and 4.0.19).*
5066+
*Updated in version 5.2 (and 5.0.6).*
50665067

50675068
.. _server-status-apiVersions:
50685069

@@ -5097,9 +5098,7 @@ metrics
50975098
.. serverstatus:: metrics.operatorCounters
50985099

50995100
A document with a number that indicates how often
5100-
:ref:`aggregation-expression-operators` ran. For some operators, the
5101-
number reported is a multiple of the times the operator actually
5102-
ran.
5101+
:ref:`aggregation-expression-operators` ran.
51035102

51045103
To get metrics for a specific operator, such as the greater-than
51055104
operator (:expression:`$gt`), append the operator to the command:
@@ -5113,9 +5112,7 @@ metrics
51135112
.. serverstatus:: metrics.operatorCounters.match
51145113

51155114
A document with a number that indicates how often
5116-
:ref:`match expressions <query-projection-operators-top>` ran. For
5117-
some operators, the number reported is a multiple of the times the
5118-
operator actually ran.
5115+
:ref:`match expressions <query-projection-operators-top>` ran.
51195116

51205117
:ref:`Match expression operators <query-projection-operators-top>`
51215118
also increment as part of an aggregation pipeline :pipeline:`$match`

source/release-notes/5.2.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ Starting in MongoDB 5.2, you can convert timestamps to dates using the
102102
:expression:`$convert` operator. The :expression:`$toDate` operator can
103103
also convert timestamps.
104104

105+
Improved Precision for Operator Counters
106+
````````````````````````````````````````
107+
108+
Starting in MongoDB 5.2 and 5.0.6, :serverstatus:`aggregation operator
109+
metrics <metrics.operatorCounters>` are more precise: internal
110+
processing does not inflate the counters.
111+
105112
|sbe-title| Can Execute :pipeline:`$group` Stages
106113
`````````````````````````````````````````````````
107114

0 commit comments

Comments
 (0)