-
Type: Task
-
Resolution: Won't Fix
-
Priority: Critical - P2
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Execution
-
2
The VectorClock is protected by a global mutex. When possible, it is preferential to avoid unnecessary calls to this global lock. One caller is the Variables::generateRuntimeConstants function which fetches the ClusterTime even though a query may never access $$CLUSTER_TIME. I believe it is possible to analyze the query for $$CLUSTER_TIME usage like $$USER_ROLES is checked for.
- is related to
-
SERVER-80980 remove lock in VectorClock::isEnabled
- Closed
- related to
-
SERVER-87159 Avoid generating unused runtime constants in ExpressionContext
- Closed