We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44d33d6 commit f09210bCopy full SHA for f09210b
extensions/ql-vscode/src/log-insights/performance-comparison.ts
@@ -115,9 +115,13 @@ export class PerformanceOverviewScanner implements EvaluationLogScanner {
115
}
116
case "CACHE_HIT":
117
case "CACHACA": {
118
- this.data.cacheHitIndices.push(
119
- this.getPredicateIndex(event.predicateName),
120
- );
+ // Record a cache hit, but only if the predicate has not been seen before.
+ // We're mainly interested in the reuse of caches from an earlier query run as they can distort comparisons.
+ if (!this.nameToIndex.has(event.predicateName)) {
121
+ this.data.cacheHitIndices.push(
122
+ this.getPredicateIndex(event.predicateName),
123
+ );
124
+ }
125
break;
126
127
case "SENTINEL_EMPTY": {
0 commit comments