summaryrefslogtreecommitdiff
path: root/src/mongo/db/stats/counters.h
diff options
context:
space:
mode:
authorJennifer Peshansky <jennifer.peshansky@mongodb.com>2022-09-21 15:35:34 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-21 16:54:55 +0000
commit6f450a3cea6287612329f44e90536d72fe7c16c5 (patch)
tree46d2685c8334602687e2ff414df20d77f4c0ea27 /src/mongo/db/stats/counters.h
parent1d61d0b76ec6b6c130d6d2433d56df5524a7a82c (diff)
downloadmongo-6f450a3cea6287612329f44e90536d72fe7c16c5.tar.gz
SERVER-69748 Remove redundant totalPipelineLookup counter
Diffstat (limited to 'src/mongo/db/stats/counters.h')
-rw-r--r--src/mongo/db/stats/counters.h14
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;