[SERVER-56602] Track usage of match expressions in serverStatus Created: 04/May/21  Updated: 29/Oct/23  Resolved: 05/Aug/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.11, 4.2.18, 5.0.4, 5.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Katya Kamenieva Assignee: Milena Ivanova
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Documented
is documented by DOCS-14715 [SERVER]Investigate changes in SERVER... Closed
Related
is related to DOCS-14899 [BACKPORT] [v4.4] Track usage of matc... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0, v4.4, v4.2
Sprint: Query Optimization 2021-05-31, Query Optimization 2021-06-14, Query Optimization 2021-06-28, Query Optimization 2021-07-12, Query Optimization 2021-07-26, Query Optimization 2021-08-09
Participants:

 Description   

Add counters for match expressions (https://docs.mongodb.com/manual/reference/operator/query/

Something like this:

"metrics" : {
   "matchExpressionsCounters" : {
         "$text" : <num>,
         "$elemMatch" : <num>,
         ...
         "<expression>" : <num>
         }
   },
   ...
}

 

 



 Comments   
Comment by Githook User [ 23/Nov/21 ]

Author:

{'name': 'Milena Ivanova', 'email': 'milena.ivanova@mongodb.com', 'username': 'mivanova3'}

Message: SERVER-56602 Track usage of match expressions in serverStatus

(cherry picked from commit 98b4a0a2b2c4a230efe1c2ddc3da487a575d670d)
(cherry picked from commit e7a9d8465911803552939ab364ef2cada688be5b)
Branch: v4.2
https://github.com/mongodb/mongo/commit/caa1e34fe651d74808b9ebe2785c660fd3da20d9

Comment by Githook User [ 27/Oct/21 ]

Author:

{'name': 'Milena Ivanova', 'email': 'milena.ivanova@mongodb.com', 'username': 'mivanova3'}

Message: SERVER-56602 Track usage of match expressions in serverStatus

(cherry picked from commit 98b4a0a2b2c4a230efe1c2ddc3da487a575d670d)
Branch: v4.4
https://github.com/mongodb/mongo/commit/e7a9d8465911803552939ab364ef2cada688be5b

Comment by Githook User [ 25/Oct/21 ]

Author:

{'name': 'Milena Ivanova', 'email': 'milena.ivanova@mongodb.com', 'username': 'mivanova3'}

Message: SERVER-56602 Track usage of match expressions in serverStatus

(cherry picked from commit 98b4a0a2b2c4a230efe1c2ddc3da487a575d670d)
Branch: BACKPORT-9836
https://github.com/mongodb/mongo/commit/53d1e21a3afc2fd0a39564e1bd3f3fd7d3ba2501

Comment by Githook User [ 12/Oct/21 ]

Author:

{'name': 'Milena Ivanova', 'email': 'milena.ivanova@mongodb.com', 'username': 'mivanova3'}

Message: SERVER-56602 Track usage of match expressions in serverStatus

(cherry picked from commit 98b4a0a2b2c4a230efe1c2ddc3da487a575d670d)
Branch: v5.0
https://github.com/mongodb/mongo/commit/10bbd356ff484dd6bb921ad4efe54f4e97aab32b

Comment by Githook User [ 05/Aug/21 ]

Author:

{'name': 'Milena Ivanova', 'email': 'milena.ivanova@mongodb.com', 'username': 'mivanova3'}

Message: SERVER-56602 Track usage of match expressions in serverStatus
Branch: master
https://github.com/mongodb/mongo/commit/98b4a0a2b2c4a230efe1c2ddc3da487a575d670d

Comment by Katya Kamenieva [ 04/May/21 ]

"<expression>" will be a $-prefixed MongoDB operator, one if these https://docs.mongodb.com/manual/reference/operator/query/. 

Not an expression like '$my_fav_obj_name.field1'

Comment by Bruce Lucas (Inactive) [ 04/May/21 ]

Assuming this just means operators and not expressions, should this be called matchOperatorCounters?

Comment by Bruce Lucas (Inactive) [ 04/May/21 ]

What does "<expression>" mean? Is this a literal string "<expression>" or a placeholder for something open-ended? Just checking to make sure we're not excessively inflating FTDC.

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