Free Database Audit

Learn More
  • TempDB latch contention - PAGELATCH_* waits on pages 2:1:1, 2:1:3 dominating sys.dm_exec_requests; the standard 'add more TempDB files' advice didn't fix it.
  • Parameter-sensitive plan regressions - Query Store shows materially different plans and runtime behavior for the same statement across parameter distributions.
  • I/O-related waits - PAGEIOLATCH_* is prominent, but file latency, query reads, memory pressure, storage, and the measurement window have not yet been correlated.

A tuning scope establishes the baseline, identifies causal evidence, tests authorized changes, and records validation and rollback. Book a tuning scoping call →

SQL Server DBRE Performance Engineering

SQL Server Performance Tuning

In short: SQL Server performance tuning is evidence-led DBRE work: baseline the workload, correlate Query Store history, waits, blocking, plans, I/O, memory, and TempDB behavior, then test the smallest safe query, index, statistics, configuration, or application change. Success is measured against the original workload with rollback and regression checks.

SQL Server DBAs and Database Reliability Engineers use engine and application evidence together. A tuning engagement does not promise a universal speedup; it identifies the limiting resource, tests hypotheses, and documents the verified result for the workload in scope.

Common SQL Server Performance Challenges We Fix

Slow Query Execution

Missing indexes, bad execution plans, parameter sniffing issues, and implicit conversions killing query performance.

High CPU & Blocking

Inefficient queries consuming excess CPU, lock contention, and blocking chains causing cascading timeouts.

TempDB & Memory Pressure

TempDB contention under concurrency, memory grant waits, and buffer pool pressure degrading throughput.

I/O Bottlenecks

Slow data file I/O, log file contention, and fragmented indexes causing excessive disk reads.

How SQL Server Tuning Is Measured

Each candidate change is compared with a workload-specific baseline; these are validation dimensions, not promised outcomes.

Query latency

Measured

Baseline: Distribution by workload and time window

Validation: Compare like-for-like percentiles and plans

CPU and scheduler pressure

Measured

Baseline: CPU, runnable tasks, waits, and query consumers

Validation: Confirm reduced work without shifting the bottleneck

Throughput

Measured

Baseline: Completed business transactions under representative load

Validation: Verify concurrency, errors, and resource cost

Blocking and deadlocks

Measured

Baseline: Blocked duration, chains, deadlock graphs, and transactions

Validation: Retest concurrency and transaction semantics

TempDB pressure

Measured

Baseline: Space, I/O, latch, metadata, and version-store evidence

Validation: Validate the specific contention mode under load

Our Performance Tuning Methodology

A systematic, data-driven approach to SQL Server performance optimization.

Performance Audit

Baseline capture of top wait types, heaviest queries, and resource consumption patterns.

Query Store
Extended Events
DMVs

Execution Plan Analysis

Identify parameter sniffing, bad estimates, missing joins, and plan regressions.

SQL Server Management Studio
SentryOne Plan Explorer
Brent Ozar sp_BlitzCache

Index Optimization

Add, consolidate, or rebuild indexes; remove unused indexes to reduce write overhead.

Missing Index DMVs
Index Usage Stats
Fragmentation Analysis

Server Configuration

Right-size MAXDOP, parallelism thresholds, max server memory, and TempDB layout.

MAXDOP
Cost Threshold
Max Server Memory

In-Memory & Columnstore

Identify tables and queries that benefit from memory-optimized tables or columnstore indexes.

In-Memory OLTP
Columnstore Indexes
Batch Mode

Monitoring Baseline

Configure ongoing Query Store baselines, alerts, and dashboards to detect future regressions.

Query Store
Datadog
SQL Server Alerts

Advanced Optimization Techniques

Execution Plan Forcing via Query Store
Parameter Sniffing Mitigation
TempDB Pre-allocation & File Layout
Read-Committed Snapshot Isolation (RCSI)
Columnstore Index for OLAP Workloads
In-Memory OLTP for OLTP Hot Tables
Batch Mode on Rowstore (SQL Server 2019)
Adaptive Query Processing
Intelligent Query Processing (IQP)
Online Index Rebuild & Reorganize
Technical review and primary sources

SQL Server performance guidance and validation sources

Review scope: Query regressions, execution plans, waits, blocking, indexing, statistics, memory grants, parallelism, TempDB, change safety, and before-and-after workload validation. Guidance is checked against primary Microsoft documentation; recommendations, schedules, response targets, and outcomes remain workload-, version-, topology-, access-, and contract-specific.

Technically reviewed by the JusDB Database Reliability Engineering team. Last reviewed: . See the team and roles.

Performance Tuning FAQs

How do you identify slow SQL Server queries?

We use Query Store, Extended Events, and sys.dm_exec_query_stats DMVs to identify top resource-consuming queries. We analyze execution plans, check for missing index warnings, and review wait statistics to pinpoint root causes.

What is wait statistics analysis and why does it matter?

Wait statistics show where SQL Server tasks accumulated wait time, such as I/O, locks, latches, memory grants, CPU scheduling, or network consumption. They narrow the investigation but are not a root cause by themselves; the analysis must correlate waits with time windows, queries, plans, configuration, and workload events.

How do you tune SQL Server indexes without disrupting production?

Missing-index DMVs, Query Store, execution plans, index usage, write cost, and workload frequency are inputs rather than automatic instructions. Proposed changes are tested and scripted with rollback. Online operations can reduce some blocking but have edition, version, lock, space, and operation-specific constraints, so they do not guarantee zero disruption.

Can you improve performance without application code changes?

Sometimes. Indexes, plan regressions, statistics, TempDB, memory, parallelism, and database settings can improve an engine-side bottleneck. Other cases require query, transaction, schema, connection-pool, or application changes. The evidence should determine the layer that owns the constraint.

What is TempDB optimization and why is it important?

TempDB is a shared system database used by temporary objects, version stores, sorts, hashes, and other engine work. Tuning starts by identifying space, I/O, metadata, or allocation contention. File count, equal sizing, growth, storage, workload changes, and version-specific features are evaluated; trace flags 1117 and 1118 are generally unnecessary from SQL Server 2016 onward.

How are SQL Server tuning improvements validated?

The engagement defines a representative baseline and success measures before a change. Query Store, Extended Events, DMVs, application telemetry, and workload tests can compare latency distributions, throughput, resource use, waits, blocking, and plan stability. Results remain workload-specific, and rejected changes and regressions are recorded alongside successful changes.

Baseline Before Change

Need Evidence for a SQL Server Regression?

Share the affected workload, Query Store window, plans, symptoms, and recent changes. We will define the evidence, access, validation, rollback, schedule, and deliverables required for a tuning review.

Explore all SQL Server services

Need a different SQL Server service? Browse our complete offerings.