SQL Server Performance Tuning: Common Problems, Possible Solutions

GrantFritchey 53 views 13 slides Oct 08, 2024
Slide 1
Slide 1 of 13
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13

About This Presentation

Identifying which queries are running the slowest, or using the most resources is relatively well documented. However, once you identify the query you need to fix, what are you supposed to do next? This session will walk through a bunch of the most common performance problems and how you go about id...


Slide Content

Common Problems Possible Solutions

Grant Fritchey DevOps Advocate Microsoft Data Platform MVP AWS Community Builder About me @gfritchey [email protected] scarydba.com

Learn common performance problems Understand possible solutions Discover methods of validation Agenda

Unique constraints Foreign keys Check constraints Missing, or Incorrect Constraints

Wide columns Poor selectivity, especially on leading edge Poor or missing clustered index Clustered index updated frequently Columnstore Index Design

Cost Threshold for Parallelism Max Degree of Parallelism Parallelism

Out of date Missing Statistics

Non- sargeable filter Calculation in filter Optimizer hints Nesting views Object ownership Implicit data conversion T-SQL Code

Data skew Out of date statistics Parameter Sniffing

Execution Plans DMVs Extended Events Query Store Mk I Eyeball Validating Solutions

Thanks for attending!

Grant Fritchey DevOps Advocate Microsoft Data Platform MVP AWS Community Builder About me @gfritchey [email protected] scarydba.com

Photo Credits Crash | Arslan | Flickr crash | CSX and a empty semi flat bed. No injuries, | Ruin Raider | Flickr Crash ! | I was quietly looking at a book and moved slightly… | Flickr Crash | kozzmen | Flickr Crashed | Frankfurt 2011 | List_84 | Flickr Car crash | Driver walked away from this. | huggs2 | Flickr D&W Autos - Mechanic At Work 2 | This was taken at a local g… | Flickr