SlideShare a Scribd company logo
Jacksonville 2022 #1022
#SQLSatJax
Back to Basics: Getting
Started with Performance
Tuning
John Sterrett
CEO & Principal Consultant
Procure SQL
Thank you to ALL of our sponsors! - Be sure to stop by all tables!
Platinum Gold
Silver In-Kind
Jacksonville 2022 #1022
#SQLSatJax
Monthly Meetings
3rd Wednesday of each month
jssug.org
Getting Started with SQL Server Performance Tuning.pdf
501 Legion Charitable Donation
Thank the 501 Legion for Supporting Our Event!
JSSUG Will Match Donations up to $500
Donation Bucket on Registration Table
Jacksonville 2022 #1022
John
CEO & Principal Consultant
John@ProcureSQL.com
@JohnSterrett
https://www.linkedin.com/in/johnsterrett
Procure SQL LLC
John's experience leading large technical
teams in complex environments has made
him a global expert in performance and
scalability.
John speaks at conferences around the
world on database strategy and topics
related to performance tuning, development,
and cloud computing. He is a Microsoft
Certified Trainer and the principal consultant
and founder at Procure SQL
Sterrett
#PASSDataCommunitySummit
Goal of Today’s Session
Arm anyone who is new to
performance tuning with processes
and skills to identify and solve some
common performance problems.
#SQLSatJax
Jacksonville 2022 #1022
Find Your Top Offenders
Today’s Agenda
Understanding Execution Plans Basics
Index Framework to Improve Performance
#SQLSatJax
Jacksonville 2022 #1022
The Typical Intro to Performance Tuning
#SQLSatJax
Jacksonville 2022 #1022
Time
T1 : Resource not
available (Suspended
Query)
T2: Resource Now
Available. Back in
schedule queue.
(Runnable State)
T3: Continue Processing
(Resources acquired and
scheduled to run)
T3-T2
Signal Wait Time (Have resource
waiting to be scheduled to run)
T3-T1
Wait Time (Total waiting from
needing a resource to running
again)
Basic Query Runtime
Running
Suspended
Runnable
#SQLSatJax
Jacksonville 2022 #1022
Meet the SQL Server Bottlenecks
11
Photos: http://www.flickr.com/photos/kaiban/5159888367/lightbox/ and http://www.flickr.com/photos/moodog/504456253 and
http://www.flickr.com/photos/marksze/4231115464 and http://www.flickr.com/photos/vvvracer/5264339383 and
http://www.flickr.com/photos/iphil_photos/4962369046
MEMORY DISK CPU
NETWORK LOCKING, BLOCKING & DEADLOCKS
#SQLSatJax
Jacksonville 2022 #1022
Performance Problems NOW!
When Do Top Offenders Matter?
Root Cause Analysis (RCA)
Previous Performance Problem
Improve A Processes Performance
Migrations / Consolidation / Long Term
#PASSDataCommunitySummit
DEMO
Identify
Performance
Problems
Occurring
Right Now!
#PASSDataCommunitySummit
DEMO
XEvents for
Identify Top
Offenders for
A Process
#PASSDataCommunitySummit
DEMO
Identify Top
Offenders
over the long
term!
#SQLSatJax
Jacksonville 2022 #1022
Intro to Execution Plans
#SQLSatJax
Jacksonville 2022 #1022
Cost and Thick Lines
#SQLSatJax
Jacksonville 2022 #1022
Key Lookups
#SQLSatJax
Jacksonville 2022 #1022
Implicit Conversions
#SQLSatJax
Jacksonville 2022 #1022
SARGable
#PASSDataCommunitySummit
DEMO
Three things
to easily
identify in
Execution
Plans
#SQLSatJax
Jacksonville 2022 #1022
• Identify Tables in Query
• Identify Columns being Selected
• Identify filters (HINT JOIN and WHERE)
• Find total rows for each table used in the Query
• Find selectivity (rows with filter / table rows)
• Enable statistics io, time and the actual execution plan.
• Run the Query and document your findings
• Review existed indexes for filters and columns selected
• Add index for lowest selectivity adding the selected columns
as included columns
• Run the Query again and document your findings.
• Compare findings with baseline.
• Repeat last four steps as needed.
Indexing Tuning Process
#PASSDataCommunitySummit
DEMO
Indexing
Basics in 12
Steps
#SQLSatJax
Jacksonville 2022 #1022
sp_WhoIsActive
Free Tools for your Troubleshooting Toolbelt
Sp_BlitzIndex
Query Store
Extended Events
Session evaluation
Your feedback is important to us
Please fill out your session evaluation and
hand to speaker!
Jacksonville 2022 #1022
#SQLSatJax
Thank you to ALL of our sponsors! - Be sure to stop by all tables!
Platinum Gold
Silver In-Kind
Jacksonville 2022 #1022
Thank you
Jacksonville 2022 #1022
#SQLSatJax
John Sterrett
@JohnSterrett
John@procuresql.com
http://johnsterrett.com/contact-me

More Related Content

Similar to Getting Started with SQL Server Performance Tuning.pdf (20)

PPTX
SQL Server Workshop for Developers - Visual Studio Live! NY 2012
Andrew Brust
 
PPT
261197832 8-performance-tuning-part i
NaviSoft
 
PDF
10 sql tips
Yogui Osasuno
 
PDF
Discovering the plan cache (sql sat175)
Jason Strate
 
PPTX
Swiss pass chapter deck - zurich - april 2011
Charley Hanania
 
PPTX
Oracle Database Performance Tuning Basics
nitin anjankar
 
PPTX
The 5S Approach to Performance Tuning by Chuck Ezell
Datavail
 
PDF
PowerPivot for DBAs
John Sterrett
 
PDF
Step-by-Step Cookbook for Identifying and Tuning SQL Problems
Minh237839
 
PPT
Sql server performance tuning
ngupt28
 
PDF
Tuning SQL for Oracle Exadata: The Good, The Bad, and The Ugly Tuning SQL fo...
Enkitec
 
PPTX
Pass camp 2010 - DBA 101 to 401 - From Spring Board to Deep Wreck Dives
Charley Hanania
 
PDF
Maximizing Database Tuning in SAP SQL Anywhere
SAP Technology
 
PDF
Newsletter December09
guest50e0c5
 
PDF
Microsoft SQL Server Query Tuning
Mark Ginnebaugh
 
PDF
Discovering the plan cache (#SQLSat211)
Jason Strate
 
PPTX
IBM Insight 2013 - Aetna's production experience using IBM DB2 Analytics Acce...
Daniel Martin
 
PDF
Discovering the Plan Cache (#SQLSat 206)
Jason Strate
 
PDF
Enterprise Data Mining for SQL Server Professionals 20110319
Mark Tabladillo
 
PPT
Microsoft SQL Server PASS News June 2010
Mark Ginnebaugh
 
SQL Server Workshop for Developers - Visual Studio Live! NY 2012
Andrew Brust
 
261197832 8-performance-tuning-part i
NaviSoft
 
10 sql tips
Yogui Osasuno
 
Discovering the plan cache (sql sat175)
Jason Strate
 
Swiss pass chapter deck - zurich - april 2011
Charley Hanania
 
Oracle Database Performance Tuning Basics
nitin anjankar
 
The 5S Approach to Performance Tuning by Chuck Ezell
Datavail
 
PowerPivot for DBAs
John Sterrett
 
Step-by-Step Cookbook for Identifying and Tuning SQL Problems
Minh237839
 
Sql server performance tuning
ngupt28
 
Tuning SQL for Oracle Exadata: The Good, The Bad, and The Ugly Tuning SQL fo...
Enkitec
 
Pass camp 2010 - DBA 101 to 401 - From Spring Board to Deep Wreck Dives
Charley Hanania
 
Maximizing Database Tuning in SAP SQL Anywhere
SAP Technology
 
Newsletter December09
guest50e0c5
 
Microsoft SQL Server Query Tuning
Mark Ginnebaugh
 
Discovering the plan cache (#SQLSat211)
Jason Strate
 
IBM Insight 2013 - Aetna's production experience using IBM DB2 Analytics Acce...
Daniel Martin
 
Discovering the Plan Cache (#SQLSat 206)
Jason Strate
 
Enterprise Data Mining for SQL Server Professionals 20110319
Mark Tabladillo
 
Microsoft SQL Server PASS News June 2010
Mark Ginnebaugh
 

More from John Sterrett (12)

PDF
Database Management Myths for Developers
John Sterrett
 
PDF
Workload Replay in the Cloud: Secret Weapon for Cloud Migrations
John Sterrett
 
PPTX
Introduction to High Availability with SQL Server
John Sterrett
 
PPTX
Introduction to PowerShell for DBA's
John Sterrett
 
PPTX
SQL Server Performance Root Cause Analysis in 10 Minutes
John Sterrett
 
PDF
Table Partitioning: Secret Weapon for Big Data Problems
John Sterrett
 
PPTX
Introduction to execution plan analysis
John Sterrett
 
PDF
12 Steps to Workload Tuning
John Sterrett
 
PDF
Performance Tuning for Pirates!
John Sterrett
 
PPTX
Can You Host a SQL Saturday?
John Sterrett
 
PPTX
Evaluating Daily Checklist Against 1000 Servers using Policy Based Management
John Sterrett
 
PPTX
Evaluate Daily Checklist with PBM and CMS
John Sterrett
 
Database Management Myths for Developers
John Sterrett
 
Workload Replay in the Cloud: Secret Weapon for Cloud Migrations
John Sterrett
 
Introduction to High Availability with SQL Server
John Sterrett
 
Introduction to PowerShell for DBA's
John Sterrett
 
SQL Server Performance Root Cause Analysis in 10 Minutes
John Sterrett
 
Table Partitioning: Secret Weapon for Big Data Problems
John Sterrett
 
Introduction to execution plan analysis
John Sterrett
 
12 Steps to Workload Tuning
John Sterrett
 
Performance Tuning for Pirates!
John Sterrett
 
Can You Host a SQL Saturday?
John Sterrett
 
Evaluating Daily Checklist Against 1000 Servers using Policy Based Management
John Sterrett
 
Evaluate Daily Checklist with PBM and CMS
John Sterrett
 
Ad

Recently uploaded (20)

PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Biography of Daniel Podor.pdf
Daniel Podor
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Ad

Getting Started with SQL Server Performance Tuning.pdf