Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bb00c5d

Browse files
Merge pull request BrentOzarULTD#1332 from BrentOzarULTD/Issue_1331
Adding URLs
2 parents 5b17056 + e35c48c commit bb00c5d

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

‎sp_BlitzCache.sql

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3603,7 +3603,7 @@ SET frequent_execution = CASE WHEN ExecutionsPerMinute > @execution_threshold
36033603
low_cost_high_cpu = CASE WHEN QueryPlanCost < @ctp AND AverageCPU > 500. AND QueryPlanCost * 10 < AverageCPU THEN 1 END,
36043604
is_spool_expensive = CASE WHEN QueryPlanCost > (@ctp / 2) AND index_spool_cost >= QueryPlanCost * .1 THEN 1 END,
36053605
is_spool_more_rows = CASE WHEN index_spool_rows >= (AverageReturnedRows / ISNULL(NULLIF(ExecutionCount, 0), 1)) THEN 1 END,
3606-
is_bad_estimate = CASE WHEN AverageReturnedRows > 0 AND (estimated_rows * 10000 < AverageReturnedRows OR estimated_rows > AverageReturnedRows * 10000) THEN 1 END
3606+
is_bad_estimate = CASE WHEN AverageReturnedRows > 0 AND (estimated_rows * 1000 < AverageReturnedRows OR estimated_rows > AverageReturnedRows * 1000) THEN 1 END
36073607
WHERE SPID = @@SPID
36083608
OPTION (RECOMPILE) ;
36093609

@@ -4884,7 +4884,7 @@ BEGIN
48844884
100,
48854885
'Many Indexes Modified',
48864886
'Write Queries Are Hitting >= 5 Indexes',
4887-
'No URL yet',
4887+
'https://www.brentozar.com/blitzcache/many-indexes-modified/',
48884888
'This can cause lots of hidden I/O -- Run sp_BlitzIndex for more information.') ;
48894889

48904890
IF EXISTS (SELECT 1/0
@@ -4897,7 +4897,7 @@ BEGIN
48974897
100,
48984898
'Plan Confusion',
48994899
'Row Level Security is in use',
4900-
'No URL yet',
4900+
'https://www.brentozar.com/blitzcache/row-level-security/',
49014901
'You may see a lot of confusing junk in your query plan.') ;
49024902

49034903
IF EXISTS (SELECT 1/0
@@ -4910,7 +4910,7 @@ BEGIN
49104910
200,
49114911
'Spatial Abuse',
49124912
'You hit a Spatial Index',
4913-
'No URL yet',
4913+
'https://www.brentozar.com/blitzcache/spatial-indexes/',
49144914
'Purely informational.') ;
49154915

49164916
IF EXISTS (SELECT 1/0
@@ -4923,7 +4923,7 @@ BEGIN
49234923
150,
49244924
'Index DML',
49254925
'Indexes were created or dropped',
4926-
'No URL yet',
4926+
'https://www.brentozar.com/blitzcache/index-dml/',
49274927
'This can cause recompiles and stuff.') ;
49284928

49294929
IF EXISTS (SELECT 1/0
@@ -4936,7 +4936,7 @@ BEGIN
49364936
150,
49374937
'Table DML',
49384938
'Tables were created or dropped',
4939-
'No URL yet',
4939+
'https://www.brentozar.com/blitzcache/table-dml/',
49404940
'This can cause recompiles and stuff.') ;
49414941

49424942
IF EXISTS (SELECT 1/0
@@ -4949,7 +4949,7 @@ BEGIN
49494949
150,
49504950
'Long Running Low CPU',
49514951
'You have a query that runs for much longer than it uses CPU',
4952-
'No URL yet',
4952+
'https://www.brentozar.com/blitzcache/long-running-low-cpu/',
49534953
'This can be a sign of blocking, linked servers, or poor client application code (ASYNC_NETWORK_IO).') ;
49544954

49554955
IF EXISTS (SELECT 1/0
@@ -4962,7 +4962,7 @@ BEGIN
49624962
150,
49634963
'Low Cost Query With High CPU',
49644964
'You have a low cost query that uses a lot of CPU',
4965-
'No URL yet',
4965+
'https://www.brentozar.com/blitzcache/low-cost-high-cpu/',
49664966
'This can be a sign of functions or Dynamic SQL that calls black-box code.') ;
49674967

49684968
IF EXISTS (SELECT 1/0
@@ -4975,7 +4975,7 @@ BEGIN
49754975
150,
49764976
'Biblical Statistics',
49774977
'Statistics used in queries are >7 days old with >100k modifications',
4978-
'No URL yet',
4978+
'https://www.brentozar.com/blitzcache/stale-statistics/',
49794979
'Ever heard of updating statistics?') ;
49804980

49814981
IF EXISTS (SELECT 1/0
@@ -4988,7 +4988,7 @@ BEGIN
49884988
150,
49894989
'Adaptive joins',
49904990
'This is pretty cool -- you''re living in the future.',
4991-
'No URL yet',
4991+
'https://www.brentozar.com/blitzcache/adaptive-joins/',
49924992
'Joe Sack rules.') ;
49934993

49944994
IF EXISTS (SELECT 1/0
@@ -5001,7 +5001,7 @@ BEGIN
50015001
150,
50025002
'Expensive Index Spool',
50035003
'You have an index spool, this is usually a sign that there''s an index missing somewhere.',
5004-
'No URL yet',
5004+
'https://www.brentozar.com/blitzcache/eager-index-spools/',
50055005
'Check operator predicates and output for index definition guidance') ;
50065006

50075007
IF EXISTS (SELECT 1/0
@@ -5014,7 +5014,7 @@ BEGIN
50145014
150,
50155015
'Index Spools Many Rows',
50165016
'You have an index spool that spools more rows than the query returns',
5017-
'No URL yet',
5017+
'https://www.brentozar.com/blitzcache/eager-index-spools/',
50185018
'Check operator predicates and output for index definition guidance') ;
50195019

50205020
IF EXISTS (SELECT 1/0

‎sp_BlitzQueryStore.sql

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3366,7 +3366,7 @@ SET b.frequent_execution = CASE WHEN wm.xpm > @execution_threshold THEN 1 END
33663366
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,
33673367
b.is_spool_expensive = CASE WHEN b.query_cost > (@ctp / 2) AND b.index_spool_cost >= b.query_cost * .1 THEN 1 END,
33683368
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,
33703370
b.is_big_log = CASE WHEN wm.avg_log_bytes_used >= (@log_size_mb / 2.) THEN 1 END,
33713371
b.is_big_tempdb = CASE WHEN wm.avg_tempdb_space_used >= (@avg_tempdb_data_file / 2.) THEN 1 END
33723372
FROM #working_warnings AS b
@@ -4227,7 +4227,7 @@ BEGIN
42274227
100,
42284228
'Many Indexes Modified',
42294229
'Write Queries Are Hitting >= 5 Indexes',
4230-
'No URL yet',
4230+
'https://www.brentozar.com/blitzcache/many-indexes-modified/',
42314231
'This can cause lots of hidden I/O -- Run sp_BlitzIndex for more information.') ;
42324232

42334233
IF EXISTS (SELECT 1/0
@@ -4240,7 +4240,7 @@ BEGIN
42404240
100,
42414241
'Plan Confusion',
42424242
'Row Level Security is in use',
4243-
'No URL yet',
4243+
'https://www.brentozar.com/blitzcache/row-level-security/',
42444244
'You may see a lot of confusing junk in your query plan.') ;
42454245

42464246
IF EXISTS (SELECT 1/0
@@ -4253,7 +4253,7 @@ BEGIN
42534253
200,
42544254
'Spatial Abuse',
42554255
'You hit a Spatial Index',
4256-
'No URL yet',
4256+
'https://www.brentozar.com/blitzcache/spatial-indexes/',
42574257
'Purely informational.') ;
42584258

42594259
IF EXISTS (SELECT 1/0
@@ -4266,7 +4266,7 @@ BEGIN
42664266
150,
42674267
'Index DML',
42684268
'Indexes were created or dropped',
4269-
'No URL yet',
4269+
'https://www.brentozar.com/blitzcache/index-dml/',
42704270
'This can cause recompiles and stuff.') ;
42714271

42724272
IF EXISTS (SELECT 1/0
@@ -4279,7 +4279,7 @@ BEGIN
42794279
150,
42804280
'Table DML',
42814281
'Tables were created or dropped',
4282-
'No URL yet',
4282+
'https://www.brentozar.com/blitzcache/table-dml/',
42834283
'This can cause recompiles and stuff.') ;
42844284

42854285
IF EXISTS (SELECT 1/0
@@ -4292,7 +4292,7 @@ BEGIN
42924292
150,
42934293
'Long Running Low CPU',
42944294
'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/',
42964296
'This can be a sign of blocking, linked servers, or poor client application code (ASYNC_NETWORK_IO).') ;
42974297

42984298
IF EXISTS (SELECT 1/0
@@ -4305,7 +4305,7 @@ BEGIN
43054305
150,
43064306
'Low Cost Query With High CPU',
43074307
'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/',
43094309
'This can be a sign of functions or Dynamic SQL that calls black-box code.') ;
43104310

43114311
IF EXISTS (SELECT 1/0
@@ -4318,7 +4318,7 @@ BEGIN
43184318
150,
43194319
'Biblical Statistics',
43204320
'Statistics used in queries are >7 days old with >100k modifications',
4321-
'No URL yet',
4321+
'https://www.brentozar.com/blitzcache/stale-statistics/',
43224322
'Ever heard of updating statistics?') ;
43234323

43244324
IF EXISTS (SELECT 1/0
@@ -4331,7 +4331,7 @@ BEGIN
43314331
150,
43324332
'Adaptive joins',
43334333
'This is pretty cool -- you''re living in the future.',
4334-
'No URL yet',
4334+
'https://www.brentozar.com/blitzcache/adaptive-joins/',
43354335
'Joe Sack rules.') ;
43364336

43374337
IF EXISTS (SELECT 1/0
@@ -4344,7 +4344,7 @@ BEGIN
43444344
150,
43454345
'Expensive Index Spool',
43464346
'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/',
43484348
'Check operator predicates and output for index definition guidance') ;
43494349

43504350
IF EXISTS (SELECT 1/0
@@ -4357,7 +4357,7 @@ BEGIN
43574357
150,
43584358
'Index Spools Many Rows',
43594359
'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/',
43614361
'Check operator predicates and output for index definition guidance') ;
43624362

43634363
IF EXISTS (SELECT 1/0
@@ -4370,7 +4370,7 @@ BEGIN
43704370
100,
43714371
'Potentially bad cardinality estimates',
43724372
'Estimated rows are different from average rows by a factor of 10000',
4373-
'No URL yet',
4373+
'https://www.brentozar.com/blitzcache/bad-estimates/',
43744374
'This may indicate a performance problem if mismatches occur regularly') ;
43754375

43764376
IF EXISTS (SELECT 1/0
@@ -4383,7 +4383,7 @@ BEGIN
43834383
100,
43844384
'High transaction log use',
43854385
'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/',
43874387
'This is probably a sign that you need to start batching queries') ;
43884388

43894389
IF EXISTS (SELECT 1/0
@@ -4418,7 +4418,7 @@ BEGIN
44184418
200,
44194419
'Database Level Statistics',
44204420
'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,
44224422
'Consider updating statistics more frequently,' AS Details
44234423
FROM #stats_agg AS sa
44244424
GROUP BY sa.[database]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /