Choose targeted maintenance and tuning
Separate integrity checks, statistics, indexes and workload resource controls.
Choose targeted maintenance and tuning
Work through the decision
A nightly job rebuilds every index, then runs a full statistics update and expands the maintenance window. Query latency still rises after large deliveries. What evidence should determine which operations to keep?
Check your reasoning
Start with the affected queries and their plans. Inspect estimate errors, relevant statistics and suitability of existing indexes. A rebuild may improve an index while imposing logging, I/O and blocking costs. Measure the effect on both reporting and writes. Schedule integrity verification independently of performance tuning.
Compare the choices
- Statistics maintenance
- Refresh optimizer distribution information when data changes make it unrepresentative. Measure estimates and plan quality afterward.
- Index maintenance
- Reorganize, rebuild or redesign selected indexes according to demonstrated workload and storage needs. Consider write and logging overhead.
- DBCC CHECKDB
- Check structural and logical database consistency on supported platforms. Respond to confirmed corruption with a tested recovery plan.
- Resource Governor
- Classify supported SQL workloads into groups and pools with resource policies. Validate classifier behavior and platform support.
Test the decision
For a reporting workload that competes for resources, assess workload classification and the platform’s supported controls. Use database-scoped optimizer settings when the change should apply to one database, and compare before and after under repeatable conditions.
Practice the guide skills
- Should every index be rebuilt nightly? Watch 1:59:59
Check your answer
Compare maintenance benefit to page density, workload, size, log growth and available window. Target qualifying indexes and measure query behavior afterward.
- Estimates diverge from actuals after a large load. Watch 2:00:44
Check your answer
Check statistics age, modification rate, sampling and distribution before selecting an update strategy. Validate estimates on the important queries.
- What distinguishes a consistency check from ordinary performance maintenance? Watch 2:01:04
Check your answer
A supported DBCC CHECKDB run examines integrity. Plan resource use and recovery from known good backups for any confirmed corruption.
- Automatic tuning recommends a plan correction. Watch 2:02:06
Check your answer
Inspect the recommendation, scope and performance evidence. Monitor the outcome after application, including regression and any automatic verification or reversion.
- CPU-bound parallel requests compete with transactional work. Watch 2:07:29
Check your answer
Review server-level parallelism settings and the workload’s observed waits. Change one justified setting at a time and replay a representative mix.
- A reporting login should have a bounded share of resources on a supported instance. Watch 2:08:10
Check your answer
Classify sessions into a workload group tied to a Resource Governor pool. Test classification and verify the feature is supported on that offering.
- Two databases on one instance need different optimizer behavior. Watch 2:09:45
Check your answer
Evaluate a database-scoped configuration, its compatibility requirements and precedence. Test one database before propagating the change.
- Growth has consumed available storage but query CPU is stable. Watch 2:10:36
Check your answer
Select a supported storage increase or tier change based on size, throughput and headroom. Verify file growth and cost rather than scaling CPU by habit.
- A query repeatedly spills after an inaccurate memory grant. Watch 2:02:58
Check your answer
Evaluate supported intelligent query processing features such as memory grant feedback under the current compatibility level. Measure repeated executions to see whether grants improve.
Official objectives for this lesson
Related lesson · Place, size and protect virtual machines
Choose targeted maintenance and tuning quiz
Answer 3 questions. Check each answer for an explanation.