1403 Confio SQL Server Tuning Infographics 8 5x11
1403 Confio SQL Server Tuning Infographics 8 5x11
A 12Step Program
CHECK FOR
TABLES + ROWCOUNTS
Make certain
you know the
rowcount
KNOW THE
SELECTIVITY OF
THE TABLES
2
1
Most useful
for RIGHT, LEFT,
OUTER joins
ANALYZE
QUERY COLUMS
Look for
CASE, CAST,
CONVERT
SARG-able
(make an index
searchable so a full
scan isnt needed)
Sub-queries
EXAMINE THE
EXECUTION PLAN
5
Know what objects
exist (avoid duplicating
efforts later on)
RE-RUN
THE QUERY
ADJUST
THE QUERY
RECORD
RESULTS
Focus on logical
I/O (number of
logical reads)
8
Record the
results and
compare
Make small
changes
Run the
plan
Focus on
most expensive
operations first
Consider a filtered
index (but not if you
have parameterized
statements)
RE-RUN
THE QUERY
11
10
ENGINEER OUT
THE STUPID
Look to reduce
logical i/o
Cursors and
row-by-row
processing
Scalar functions
Join/query/table hints
Code-first generators
(EMF, LNQ, nHibernate)
can be mis-used and
bloat the plan cache
12
Find and fix query performance faster with SolarWinds Database Performance Analyzer. Free 14-day trial at: www.solarwinds.com/dpa-download
2015 SolarWinds. All rights reserved.