Skip to content

Commit 9feca06

Browse files
authored
Merge pull request #2830 from BrentOzarULTD/dev
2021-03 Release
2 parents a5d94ba + 2bc2ce9 commit 9feca06

23 files changed

+2558
-2255
lines changed

Documentation/Development/_TestBed.sql

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*Blitz*/
1+
/*Blitz*/
22
EXEC dbo.sp_Blitz @CheckUserDatabaseObjects = 1, @CheckServerInfo = 1;
33

44
EXEC dbo.sp_Blitz @CheckUserDatabaseObjects = 1, @CheckServerInfo = 1, @OutputDatabaseName = 'DBAtools', @OutputSchemaName = 'dbo', @OutputTableName = 'Blitz';
@@ -45,9 +45,9 @@ SELECT TOP 100 * FROM DBAtools.dbo.BlitzWho ORDER BY 1 DESC;
4545
/*BlitzIndex*/
4646
EXEC dbo.sp_BlitzIndex @GetAllDatabases = 1, @Mode = 4;
4747

48-
EXEC dbo.sp_BlitzIndex @DatabaseName = 'StackOverflow2010', @Mode = 4;
48+
EXEC dbo.sp_BlitzIndex @DatabaseName = 'StackOverflow', @Mode = 4;
4949

50-
EXEC dbo.sp_BlitzIndex @DatabaseName = 'StackOverflow2010', @Mode = 4, @SkipPartitions = 0, @SkipStatistics = 0;
50+
EXEC dbo.sp_BlitzIndex @DatabaseName = 'StackOverflow', @Mode = 4, @SkipPartitions = 0, @SkipStatistics = 0;
5151

5252
EXEC dbo.sp_BlitzIndex @GetAllDatabases = 1, @Mode = 1;
5353

@@ -57,13 +57,13 @@ EXEC dbo.sp_BlitzIndex @GetAllDatabases = 1, @Mode = 3;
5757

5858

5959
/*BlitzCache*/
60-
EXEC dbo.sp_BlitzCache @SortOrder = 'all', @Debug = 1;
60+
EXEC dbo.sp_BlitzCache @SortOrder = 'all';
6161

62-
EXEC dbo.sp_BlitzCache @SortOrder = 'all avg';
62+
EXEC dbo.sp_BlitzCache @SortOrder = 'all avg', @Debug = 1;
6363

6464
EXEC dbo.sp_BlitzCache @MinimumExecutionCount = 10;
6565

66-
EXEC dbo.sp_BlitzCache @DatabaseName = N'StackOverflow2010';
66+
EXEC dbo.sp_BlitzCache @DatabaseName = N'StackOverflow';
6767

6868
EXEC dbo.sp_BlitzCache @OutputDatabaseName = 'DBAtools', @OutputSchemaName = 'dbo', @OutputTableName = 'BlitzCache';
6969

@@ -72,7 +72,7 @@ EXEC dbo.sp_BlitzCache @ExpertMode = 1;
7272
EXEC dbo.sp_BlitzCache @ExpertMode = 2;
7373

7474
/*BlitzQueryStore*/
75-
EXEC dbo.sp_BlitzQueryStore @DatabaseName = 'StackOverflow2010';
75+
EXEC dbo.sp_BlitzQueryStore @DatabaseName = 'StackOverflow';
7676

7777
/*BlitzBackups*/
7878
EXEC dbo.sp_BlitzBackups @HoursBack = 1000000;
@@ -81,4 +81,4 @@ EXEC dbo.sp_BlitzBackups @HoursBack = 1000000;
8181
EXEC dbo.sp_AllNightLog_Setup @RPOSeconds = 30, @RTOSeconds = 30, @BackupPath = 'D:\Backup', @RestorePath = 'D:\Backup', @RunSetup = 1;
8282

8383
/*sp_BlitzLock*/
84-
EXEC dbo.sp_BlitzLock @Debug = 1;
84+
EXEC dbo.sp_BlitzLock @Debug = 1;

Documentation/sp_BlitzCache_Checks_by_Priority.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,49 +11,49 @@ If you want to add a new check, start at 70
1111

1212
| Priority | FindingsGroup | Finding | URL | CheckID | Expert Mode |
1313
|----------|---------------------------------|---------------------------------------|-------------------------------------------------|----------|-------------|
14-
| 10 | Execution Plans | Forced Serialization | http://www.brentozar.com/blitzcache/forced-serialization/ | 25 | No |
15-
| 10 | Large USERSTORE_TOKENPERM cache | Using Over 10% of the Buffer Pool | https://brentozar.com/go/userstore | 69 | No |
14+
| 10 | Execution Plans | Forced Serialization | https://www.brentozar.com/blitzcache/forced-serialization/ | 25 | No |
15+
| 10 | Large USERSTORE_TOKENPERM cache | Using Over 10% of the Buffer Pool | https://www.brentozar.com/go/userstore | 69 | No |
1616
| 50 | Complexity | High Compile CPU | https://www.brentozar.com/blitzcache/high-compilers/ | 64 | No |
1717
| 50 | Complexity | High Compile Memory | https://www.brentozar.com/blitzcache/high-compilers/ | 65 | No |
18-
| 50 | Execution Plans | Compilation timeout | http://brentozar.com/blitzcache/compilation-timeout/ | 18 | No |
19-
| 50 | Execution Plans | Compile Memory Limit Exceeded | http://brentozar.com/blitzcache/compile-memory-limit-exceeded/ | 19 | No |
20-
| 50 | Execution Plans | No join predicate | http://brentozar.com/blitzcache/no-join-predicate/ | 20 | No |
21-
| 50 | Execution Plans | Plan Warnings | http://brentozar.com/blitzcache/query-plan-warnings/ | 8 | No |
18+
| 50 | Execution Plans | Compilation timeout | https://www.brentozar.com/blitzcache/compilation-timeout/ | 18 | No |
19+
| 50 | Execution Plans | Compile Memory Limit Exceeded | https://www.brentozar.com/blitzcache/compile-memory-limit-exceeded/ | 19 | No |
20+
| 50 | Execution Plans | No join predicate | https://www.brentozar.com/blitzcache/no-join-predicate/ | 20 | No |
21+
| 50 | Execution Plans | Plan Warnings | https://www.brentozar.com/blitzcache/query-plan-warnings/ | 8 | No |
2222
| 50 | Functions | Computed Column UDF | https://www.brentozar.com/blitzcache/computed-columns-referencing-functions/ | 42 | Yes |
2323
| 50 | Functions | Filter UDF | https://www.brentozar.com/blitzcache/compute-scalar-functions/ | 44 | Yes |
24-
| 50 | Non-SARGable queries | Queries may have non-SARGable predicates |http://brentozar.com/go/sargable| 62 | No |
25-
| 50 | Parameterization | Forced Parameterization | http://brentozar.com/blitzcache/forced-parameterization/ | 5 | No |
26-
| 50 | Parameterization | Forced Plan | http://brentozar.com/blitzcache/forced-plans/ | 3 | No |
27-
| 50 | Parameterization | Parameter Sniffing | http://brentozar.com/blitzcache/parameter-sniffing/ | 2 | No |
28-
| 50 | Performance | Function Join | http://brentozar.com/blitzcache/tvf-join/ | 17 | Yes |
29-
| 50 | Performance | Implicit Conversions | http://brentozar.com/go/implicit | 14 | No |
30-
| 50 | Performance | Long Running Query | http://brentozar.com/blitzcache/long-running-queries/ | 9 | No |
31-
| 50 | Performance | Missing Indexes | http://brentozar.com/blitzcache/missing-index-request/ | 10 | No |
24+
| 50 | Non-SARGable queries | Queries may have non-SARGable predicates |https://www.brentozar.com/go/sargable| 62 | No |
25+
| 50 | Parameterization | Forced Parameterization | https://www.brentozar.com/blitzcache/forced-parameterization/ | 5 | No |
26+
| 50 | Parameterization | Forced Plan | https://www.brentozar.com/blitzcache/forced-plans/ | 3 | No |
27+
| 50 | Parameterization | Parameter Sniffing | https://www.brentozar.com/blitzcache/parameter-sniffing/ | 2 | No |
28+
| 50 | Performance | Function Join | https://www.brentozar.com/blitzcache/tvf-join/ | 17 | Yes |
29+
| 50 | Performance | Implicit Conversions | https://www.brentozar.com/go/implicit | 14 | No |
30+
| 50 | Performance | Long Running Query | https://www.brentozar.com/blitzcache/long-running-queries/ | 9 | No |
31+
| 50 | Performance | Missing Indexes | https://www.brentozar.com/blitzcache/missing-index-request/ | 10 | No |
3232
| 50 | Selects w/ Writes | Read queries are causing writes | https://dba.stackexchange.com/questions/191825/ | 66 | No |
3333
| 100 | Complexity | Long Compile Time | https://www.brentozar.com/blitzcache/high-compilers/ | No |
3434
| 100 | Complexity | Many to Many Merge | Blog not published yet | 61 | Yes |
3535
| 100 | Complexity | Row Estimate Mismatch | https://www.brentozar.com/blitzcache/bad-estimates/ | 56 | Yes |
3636
| 100 | Compute Scalar That References A CLR Function | Calls CLR Functions | https://www.brentozar.com/blitzcache/compute-scalar-functions/| 31 | Yes |
3737
| 100 | Compute Scalar That References A Function | Calls Functions | https://www.brentozar.com/blitzcache/compute-scalar-functions/| 31 | Yes |
38-
| 100 | Execution Pattern | Frequently Execution | http://brentozar.com/blitzcache/frequently-executed-queries/ | 1 | No |
39-
| 100 | Execution Plans | Expensive Key Lookup | http://www.brentozar.com/blitzcache/expensive-key-lookups/ | 26 | No |
40-
| 100 | Execution Plans | Expensive Remote Query | http://www.brentozar.com/blitzcache/expensive-remote-query/ | 28 | |
41-
| 100 | Execution Plans | Expensive Sort | http://www.brentozar.com/blitzcache/expensive-sorts/ | 43 | No |
42-
| 100 | Execution Plans | Trivial Plans | http://brentozar.com/blitzcache/trivial-plans | 24 | No |
43-
| 100 | Functions | MSTVFs | http://brentozar.com/blitzcache/tvf-join/ | 60 | No |
38+
| 100 | Execution Pattern | Frequently Execution | https://www.brentozar.com/blitzcache/frequently-executed-queries/ | 1 | No |
39+
| 100 | Execution Plans | Expensive Key Lookup | https://www.brentozar.com/blitzcache/expensive-key-lookups/ | 26 | No |
40+
| 100 | Execution Plans | Expensive Remote Query | https://www.brentozar.com/blitzcache/expensive-remote-query/ | 28 | |
41+
| 100 | Execution Plans | Expensive Sort | https://www.brentozar.com/blitzcache/expensive-sorts/ | 43 | No |
42+
| 100 | Execution Plans | Trivial Plans | https://www.brentozar.com/blitzcache/trivial-plans | 24 | No |
43+
| 100 | Functions | MSTVFs | https://www.brentozar.com/blitzcache/tvf-join/ | 60 | No |
4444
| 100 | Indexes | \>= 5 Indexes Modified | https://www.brentozar.com/blitzcache/many-indexes-modified/ | 45 | Yes |
4545
| 100 | Indexes | ColumnStore Row Mode | https://www.brentozar.com/blitzcache/columnstore-indexes-operating-row-mode/ | 41 | Yes |
4646
| 100 | Indexes | Forced Indexes | https://www.brentozar.com/blitzcache/optimizer-forcing/ | 39 | Yes |
4747
| 100 | Indexes | Forced Seeks/Scans | https://www.brentozar.com/blitzcache/optimizer-forcing/ | 40 | Yes |
4848
| 100 | Indexes | Table Scans (Heaps) | https://www.brentozar.com/archive/2012/05/video-heaps/ | 37 | No |
4949
| 100 | Memory Grant | Unused Memory Grant | https://www.brentozar.com/blitzcache/unused-memory-grants/ | 30 | No |
50-
| 100 | Parameterization | Unparameterized Query | http://brentozar.com/blitzcache/unparameterized-queries | 23 | Yes |
51-
| 100 | Performance | Frequently executed operators | http://brentozar.com/blitzcache/busy-loops/ | 16 | Yes |
52-
| 100 | Performance | Unmatched Indexes | http://brentozar.com/blitzcache/unmatched-indexes | 22 | No |
50+
| 100 | Parameterization | Unparameterized Query | https://www.brentozar.com/blitzcache/unparameterized-queries | 23 | Yes |
51+
| 100 | Performance | Frequently executed operators | https://www.brentozar.com/blitzcache/busy-loops/ | 16 | Yes |
52+
| 100 | Performance | Unmatched Indexes | https://www.brentozar.com/blitzcache/unmatched-indexes | 22 | No |
5353
| 100 | Statistics | Columns With No Statistics | https://www.brentozar.com/blitzcache/columns-no-statistics/ | 35 | No |
5454
| 100 | Table Variables detected | Beware nasty side effects | https://www.brentozar.com/blitzcache/table-variables/ | 33 | No |
5555
| 100 | TempDB | >500mb Spills | https://www.brentozar.com/blitzcache/tempdb-spills/ | 59 | No |
56-
| 100 | Warnings | Operator Warnings | http://brentozar.com/blitzcache/query-plan-warnings/ | 36 | Yes |
56+
| 100 | Warnings | Operator Warnings | https://www.brentozar.com/blitzcache/query-plan-warnings/ | 36 | Yes |
5757
| 150 | Blocking | Long Running Low CPU | https://www.brentozar.com/blitzcache/long-running-low-cpu/ | 50 | No |
5858
| 150 | Complexity | Index DML | https://www.brentozar.com/blitzcache/index-dml/ | 48 | Yes |
5959
| 150 | Complexity | Low Cost High CPU | https://www.brentozar.com/blitzcache/low-cost-high-cpu/ | 51 | No |
@@ -63,20 +63,20 @@ If you want to add a new check, start at 70
6363
| 150 | Indexes | Expensive Index Spool | https://sqlperformance.com/2019/09/sql-performance/nested-loops-joins-performance-spools | 67 | No |
6464
| 150 | Indexes | Large Index Row Spool | https://www.brentozar.com/blitzcache/eager-index-spools/ | 55 | No |
6565
| 150 | Indexes | Large Index Row Spool | https://sqlperformance.com/2019/09/sql-performance/nested-loops-joins-performance-spools | 68 | No |
66-
| 200 | Cardinality | Downlevel CE | http://brentozar.com/blitzcache/legacy-cardinality-estimator/ | 13 | No |
66+
| 200 | Cardinality | Downlevel CE | https://www.brentozar.com/blitzcache/legacy-cardinality-estimator/ | 13 | No |
6767
| 200 | Complexity | Adaptive Joins | https://www.brentozar.com/blitzcache/adaptive-joins/ | 53 | No |
6868
| 200 | Complexity | Row Goals | https://www.brentozar.com/go/rowgoals/ | 58 | Yes |
6969
| 200 | Complexity | Row Level Security | https://www.brentozar.com/blitzcache/row-level-security/ | 46 | Yes |
7070
| 200 | Complexity | Spatial Index | https://www.brentozar.com/blitzcache/spatial-indexes/ | 47 | Yes |
71-
| 200 | Cursors | Cursor | http://brentozar.com/blitzcache/cursors-found-slow-queries/ | 4 | No |
72-
| 200 | Cursors | Dynamic Cursors | http://brentozar.com/blitzcache/cursors-found-slow-queries/ | 4 | No |
73-
| 200 | Cursors | Fast Forward Cursors | http://brentozar.com/blitzcache/cursors-found-slow-queries/ | 4 | No |
74-
| 200 | Cursors | Non-forward Only Cursors | http://brentozar.com/blitzcache/cursors-found-slow-queries/ | 4 | No |
75-
| 200 | Cursors | Optimistic Cursors | http://brentozar.com/blitzcache/cursors-found-slow-queries/ | 4 | No |
71+
| 200 | Cursors | Cursor | https://www.brentozar.com/blitzcache/cursors-found-slow-queries/ | 4 | No |
72+
| 200 | Cursors | Dynamic Cursors | https://www.brentozar.com/blitzcache/cursors-found-slow-queries/ | 4 | No |
73+
| 200 | Cursors | Fast Forward Cursors | https://www.brentozar.com/blitzcache/cursors-found-slow-queries/ | 4 | No |
74+
| 200 | Cursors | Non-forward Only Cursors | https://www.brentozar.com/blitzcache/cursors-found-slow-queries/ | 4 | No |
75+
| 200 | Cursors | Optimistic Cursors | https://www.brentozar.com/blitzcache/cursors-found-slow-queries/ | 4 | No |
7676
| 200 | Database Level Statistics | Database has stats updated 7 days ago with more than 100k modifications | https://www.brentozar.com/blitzcache/stale-statistics/ | 997 | No |
77-
| 200 | Execution Plans | Multiple Plans | http://brentozar.com/blitzcache/multiple-plans/ | 21 | No |
78-
| 200 | Execution Plans | Nearly Parallel | http://brentozar.com/blitzcache/query-cost-near-cost-threshold-parallelism/ | 7 | No |
79-
| 200 | Execution Plans | Parallel | http://brentozar.com/blitzcache/parallel-plans-detected/ | 6 | No |
77+
| 200 | Execution Plans | Multiple Plans | https://www.brentozar.com/blitzcache/multiple-plans/ | 21 | No |
78+
| 200 | Execution Plans | Nearly Parallel | https://www.brentozar.com/blitzcache/query-cost-near-cost-threshold-parallelism/ | 7 | No |
79+
| 200 | Execution Plans | Parallel | https://www.brentozar.com/blitzcache/parallel-plans-detected/ | 6 | No |
8080
| 200 | Indexes | Backwards Scans | https://www.brentozar.com/blitzcache/backwards-scans/ | 38 | Yes |
8181
| 200 | Is Paul White Electric? | This query has a Switch operator in it! | https://www.sql.kiwi/2013/06/hello-operator-my-switch-is-bored.html | 57 | Yes |
8282
| 200 | Trace Flags | Session Level Trace Flags Enabled | https://www.brentozar.com/blitz/trace-flags-enabled-globally/ | 29 | No |

0 commit comments

Comments
 (0)