Skip to content

Commit 3ec5a3c

Browse files
authored
Merge pull request #1451 from BrentOzarULTD/issue_1438
Issue 1438
2 parents e35c35f + 821c7be commit 3ec5a3c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

sp_BlitzCache.sql

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2227,7 +2227,10 @@ RAISERROR(N'Attempting to aggregate stored proc info from separate statements',
22272227
SUM(b.MinGrantKB) AS MinGrantKB,
22282228
SUM(b.MaxGrantKB) AS MaxGrantKB,
22292229
SUM(b.MinUsedGrantKB) AS MinUsedGrantKB,
2230-
SUM(b.MaxUsedGrantKB) AS MaxUsedGrantKB
2230+
SUM(b.MaxUsedGrantKB) AS MaxUsedGrantKB,
2231+
SUM(b.MinSpills) AS MinSpills,
2232+
SUM(b.MaxSpills) AS MaxSpills,
2233+
SUM(b.TotalSpills) AS TotalSpills
22312234
FROM ##bou_BlitzCacheProcs b
22322235
WHERE b.SPID = @@SPID
22332236
AND b.QueryHash IS NOT NULL
@@ -2243,7 +2246,10 @@ UPDATE b
22432246
b.MinGrantKB = b2.MinGrantKB,
22442247
b.MaxGrantKB = b2.MaxGrantKB,
22452248
b.MinUsedGrantKB = b2.MinUsedGrantKB,
2246-
b.MaxUsedGrantKB = b2.MaxUsedGrantKB
2249+
b.MaxUsedGrantKB = b2.MaxUsedGrantKB,
2250+
b.MinSpills = b2.MinSpills,
2251+
b.MaxSpills = b2.MaxSpills,
2252+
b.TotalSpills = b2.TotalSpills
22472253
FROM ##bou_BlitzCacheProcs b
22482254
JOIN agg b2
22492255
ON b2.SqlHandle = b.SqlHandle

0 commit comments

Comments
 (0)