In this lesson, you will learn the professional habits and standards that separate a ârandom fixerâ
from a real SQL Server performance tuner. Most performance disasters do not come from one slow query.
They come from no baselines, no monitoring, guessing changes,
and no validation. This class gives you a repeatable best-practice framework you can apply on any systemâ
from a small website database to a large enterprise environment.
Big Idea: Performance tuning is a controlled process:
baseline â measure â isolate bottleneck â apply targeted fix â validate â prevent regression.
The âbest practicesâ are not magic settings; they are disciplined habits that produce consistent results.
90â150 minutes (lecture + scripts + short lab)
Guessing causes unstable systems. It creates index bloat, random hints, unsafe configuration changes, and âfixesâ that break later.
A professional tuner always uses proof:
measurements, before/after comparisons, and an understanding of the workload.
A baseline answers: âWhat does normal look like?â Without it, you cannot prove improvement or detect regressions.
Baselines should be taken during normal business conditions and stored for comparison.
/* Baseline Snapshot (safe, read-only) */ SELECT GETDATE() AS captured_at; SELECT cpu_count, scheduler_count, physical_memory_kb/1024 AS physical_memory_mb, sqlserver_start_time FROM sys.dm_os_sys_info; SELECT TOP (20) wait_type, wait_time_ms, waiting_tasks_count, signal_wait_time_ms FROM sys.dm_os_wait_stats WHERE wait_type NOT LIKE 'SLEEP%' ORDER BY wait_time_ms DESC;
Key teaching point: Wait stats are clues. They become powerful when compared over time and correlated with workload.
Key teaching point: The best tuners do the smallest safe change that produces measurable improvement.
In production, there are always multiple âissues.â Best practice is not to fix everything; it is to fix the issues that deliver
the greatest business impact with the least risk.
Key teaching point: A query that runs once a day for 60 seconds may be less important than a query that runs
10,000 times a day for 200 ms each.
Many performance incidents become worse because someone applied a risky change with no rollback plan.
A DBA must tune with safety.
Key teaching point: A tuning improvement is not real until it survives real workload and remains stable.
Students often ask: âWhat are the best SQL Server settings?â The best practice answer:
there is no universal best setting. SQL Server configuration depends on workload, hardware, and business SLAs.
Key teaching point: Evidence determines settings. Not blog posts. Not forums. Not guesses.
The job is not finished when performance improves today. The system must remain stable next week and next month.
Best practice is to prevent regressions using monitoring and documentation.
Key teaching point: The best DBAs create systems that catch problems earlyâbefore users complain.
Students will create a reusable checklist for diagnosing performance incidents and validating fixes.
Prompt:
âA senior developer says: âJust add an indexâ every time there is slowness.
As the DBA, what evidence would you ask for firstâand how would you prove whether an index is actually the correct fix?â
In the next lesson, we will cover Troubleshooting Common Performance Problems.
This will be a hands-on incident-style lesson where we walk through real symptoms (high CPU, high I/O, blocking,
memory pressure, TempDB issues, slow queries, and plan regressions) and apply a structured diagnostic process.
Not a member yet? Register now
Are you a member? Login now