@@ -3366,7 +3366,7 @@ SET b.frequent_execution = CASE WHEN wm.xpm > @execution_threshold THEN 1 END
3366
3366
b .low_cost_high_cpu = CASE WHEN b .query_cost < @ctp AND wm .avg_cpu_time > 500 . AND b .query_cost * 10 < wm .avg_cpu_time THEN 1 END ,
3367
3367
b .is_spool_expensive = CASE WHEN b .query_cost > (@ctp / 2 ) AND b .index_spool_cost >= b .query_cost * .1 THEN 1 END ,
3368
3368
b .is_spool_more_rows = CASE WHEN b .index_spool_rows >= wm .min_rowcount THEN 1 END ,
3369
- b .is_bad_estimate = CASE WHEN wm .avg_rowcount > 0 AND (b .estimated_rows * 10000 < wm .avg_rowcount OR b .estimated_rows > wm .avg_rowcount * 10000 ) THEN 1 END ,
3369
+ b .is_bad_estimate = CASE WHEN wm .avg_rowcount > 0 AND (b .estimated_rows * 1000 < wm .avg_rowcount OR b .estimated_rows > wm .avg_rowcount * 1000 ) THEN 1 END ,
3370
3370
b .is_big_log = CASE WHEN wm .avg_log_bytes_used >= (@log_size_mb / 2 .) THEN 1 END ,
3371
3371
b .is_big_tempdb = CASE WHEN wm .avg_tempdb_space_used >= (@avg_tempdb_data_file / 2 .) THEN 1 END
3372
3372
FROM #working_warnings AS b
@@ -4227,7 +4227,7 @@ BEGIN
4227
4227
100 ,
4228
4228
' Many Indexes Modified' ,
4229
4229
' Write Queries Are Hitting >= 5 Indexes' ,
4230
- ' No URL yet ' ,
4230
+ ' https://www.brentozar.com/blitzcache/many-indexes-modified/ ' ,
4231
4231
' This can cause lots of hidden I/O -- Run sp_BlitzIndex for more information.' ) ;
4232
4232
4233
4233
IF EXISTS (SELECT 1 / 0
@@ -4240,7 +4240,7 @@ BEGIN
4240
4240
100 ,
4241
4241
' Plan Confusion' ,
4242
4242
' Row Level Security is in use' ,
4243
- ' No URL yet ' ,
4243
+ ' https://www.brentozar.com/blitzcache/row-level-security/ ' ,
4244
4244
' You may see a lot of confusing junk in your query plan.' ) ;
4245
4245
4246
4246
IF EXISTS (SELECT 1 / 0
@@ -4253,7 +4253,7 @@ BEGIN
4253
4253
200 ,
4254
4254
' Spatial Abuse' ,
4255
4255
' You hit a Spatial Index' ,
4256
- ' No URL yet ' ,
4256
+ ' https://www.brentozar.com/blitzcache/spatial-indexes/ ' ,
4257
4257
' Purely informational.' ) ;
4258
4258
4259
4259
IF EXISTS (SELECT 1 / 0
@@ -4266,7 +4266,7 @@ BEGIN
4266
4266
150 ,
4267
4267
' Index DML' ,
4268
4268
' Indexes were created or dropped' ,
4269
- ' No URL yet ' ,
4269
+ ' https://www.brentozar.com/blitzcache/index-dml/ ' ,
4270
4270
' This can cause recompiles and stuff.' ) ;
4271
4271
4272
4272
IF EXISTS (SELECT 1 / 0
@@ -4279,7 +4279,7 @@ BEGIN
4279
4279
150 ,
4280
4280
' Table DML' ,
4281
4281
' Tables were created or dropped' ,
4282
- ' No URL yet ' ,
4282
+ ' https://www.brentozar.com/blitzcache/table-dml/ ' ,
4283
4283
' This can cause recompiles and stuff.' ) ;
4284
4284
4285
4285
IF EXISTS (SELECT 1 / 0
@@ -4292,7 +4292,7 @@ BEGIN
4292
4292
150 ,
4293
4293
' Long Running Low CPU' ,
4294
4294
' You have a query that runs for much longer than it uses CPU' ,
4295
- ' No URL yet ' ,
4295
+ ' https://www.brentozar.com/blitzcache/long-running-low-cpu/ ' ,
4296
4296
' This can be a sign of blocking, linked servers, or poor client application code (ASYNC_NETWORK_IO).' ) ;
4297
4297
4298
4298
IF EXISTS (SELECT 1 / 0
@@ -4305,7 +4305,7 @@ BEGIN
4305
4305
150 ,
4306
4306
' Low Cost Query With High CPU' ,
4307
4307
' You have a low cost query that uses a lot of CPU' ,
4308
- ' No URL yet ' ,
4308
+ ' https://www.brentozar.com/blitzcache/low-cost-high-cpu/ ' ,
4309
4309
' This can be a sign of functions or Dynamic SQL that calls black-box code.' ) ;
4310
4310
4311
4311
IF EXISTS (SELECT 1 / 0
@@ -4318,7 +4318,7 @@ BEGIN
4318
4318
150 ,
4319
4319
' Biblical Statistics' ,
4320
4320
' Statistics used in queries are >7 days old with >100k modifications' ,
4321
- ' No URL yet ' ,
4321
+ ' https://www.brentozar.com/blitzcache/stale-statistics/ ' ,
4322
4322
' Ever heard of updating statistics?' ) ;
4323
4323
4324
4324
IF EXISTS (SELECT 1 / 0
@@ -4331,7 +4331,7 @@ BEGIN
4331
4331
150 ,
4332
4332
' Adaptive joins' ,
4333
4333
' This is pretty cool -- you'' re living in the future.' ,
4334
- ' No URL yet ' ,
4334
+ ' https://www.brentozar.com/blitzcache/adaptive-joins/ ' ,
4335
4335
' Joe Sack rules.' ) ;
4336
4336
4337
4337
IF EXISTS (SELECT 1 / 0
@@ -4344,7 +4344,7 @@ BEGIN
4344
4344
150 ,
4345
4345
' Expensive Index Spool' ,
4346
4346
' You have an index spool, this is usually a sign that there'' s an index missing somewhere.' ,
4347
- ' No URL yet ' ,
4347
+ ' https://www.brentozar.com/blitzcache/eager-index-spools/ ' ,
4348
4348
' Check operator predicates and output for index definition guidance' ) ;
4349
4349
4350
4350
IF EXISTS (SELECT 1 / 0
@@ -4357,7 +4357,7 @@ BEGIN
4357
4357
150 ,
4358
4358
' Index Spools Many Rows' ,
4359
4359
' You have an index spool that spools more rows than the query returns' ,
4360
- ' No URL yet ' ,
4360
+ ' https://www.brentozar.com/blitzcache/eager-index-spools/ ' ,
4361
4361
' Check operator predicates and output for index definition guidance' ) ;
4362
4362
4363
4363
IF EXISTS (SELECT 1 / 0
@@ -4370,7 +4370,7 @@ BEGIN
4370
4370
100 ,
4371
4371
' Potentially bad cardinality estimates' ,
4372
4372
' Estimated rows are different from average rows by a factor of 10000' ,
4373
- ' No URL yet ' ,
4373
+ ' https://www.brentozar.com/blitzcache/bad-estimates/ ' ,
4374
4374
' This may indicate a performance problem if mismatches occur regularly' ) ;
4375
4375
4376
4376
IF EXISTS (SELECT 1 / 0
@@ -4383,7 +4383,7 @@ BEGIN
4383
4383
100 ,
4384
4384
' High transaction log use' ,
4385
4385
' This query on average uses more than half of the transaction log' ,
4386
- ' michaeljswart.com/2014/09/take-care-when-scripting-batches/' ,
4386
+ ' http:// michaeljswart.com/2014/09/take-care-when-scripting-batches/' ,
4387
4387
' This is probably a sign that you need to start batching queries' ) ;
4388
4388
4389
4389
IF EXISTS (SELECT 1 / 0
@@ -4418,7 +4418,7 @@ BEGIN
4418
4418
200 ,
4419
4419
' Database Level Statistics' ,
4420
4420
' The database ' + sa.[database] + ' last had a stats update on ' + CONVERT (NVARCHAR (10 ), CONVERT (DATE , MAX (sa .last_update ))) + ' and has ' + CONVERT (NVARCHAR (10 ), AVG (sa .modification_count )) + ' modifications on average.' AS Finding,
4421
- ' ' AS URL ,
4421
+ ' https://www.brentozar.com/blitzcache/stale-statistics/ ' AS URL ,
4422
4422
' Consider updating statistics more frequently,' AS Details
4423
4423
FROM #stats_agg AS sa
4424
4424
GROUP BY sa.[database]
0 commit comments