diff options
Diffstat (limited to 'src/mongo/db/stats/counters.h')
-rw-r--r-- | src/mongo/db/stats/counters.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/mongo/db/stats/counters.h b/src/mongo/db/stats/counters.h index b1661392574..dcd9d432be5 100644 --- a/src/mongo/db/stats/counters.h +++ b/src/mongo/db/stats/counters.h @@ -367,24 +367,18 @@ public: LookupPushdownCounters() = default; void incrementLookupCounters(OpDebug& debug) { - if (debug.pipelineUsesLookup) { - totalLookup.increment(); - } nestedLoopJoin.increment(debug.nestedLoopJoin); indexedLoopJoin.increment(debug.indexedLoopJoin); hashLookup.increment(debug.hashLookup); hashLookupSpillToDisk.increment(debug.hashLookupSpillToDisk); } - // Counter tracking pipelines that have a lookup stage regardless of the engine used. - CounterMetric totalLookup{"query.lookup.pipelineTotalCount"}; // Counters for lookup join strategies. - CounterMetric nestedLoopJoin{"query.lookup.slotBasedExecutionCounters.nestedLoopJoin"}; - CounterMetric indexedLoopJoin{"query.lookup.slotBasedExecutionCounters.indexedLoopJoin"}; - CounterMetric hashLookup{"query.lookup.slotBasedExecutionCounters.hashLookup"}; + CounterMetric nestedLoopJoin{"query.lookup.nestedLoopJoin"}; + CounterMetric indexedLoopJoin{"query.lookup.indexedLoopJoin"}; + CounterMetric hashLookup{"query.lookup.hashLookup"}; // Counter tracking hashLookup spills in lookup stages that get pushed down. - CounterMetric hashLookupSpillToDisk{ - "query.lookup.slotBasedExecutionCounters.hashLookupSpillToDisk"}; + CounterMetric hashLookupSpillToDisk{"query.lookup.hashLookupSpillToDisk"}; }; extern LookupPushdownCounters lookupPushdownCounters; |