Top Database Performance Techniques
summary
Practical, SQL Server–focused tactics with measurable results: use SET STATISTICS IO and the Stack Overflow 2013 dataset to compare logical reads; archiving 22.5 years of old rows yields ~1000x speedups by restoring cache hit rate; adding targeted indexes cuts a migration from an estimated 36 years to 8.5 hours; avoiding implicit type conversions drops reads from ~192,000 to 20; reversing strings and indexing that column gives ~1000x faster pattern searches with a reversed-string index.
AI-written summary · about
chapters (15)
- 0:00Introduction and overview
- 3:17Measuring query performance
- 4:23Reduce table size
- 7:13Select only needed columns
- 10:24Indexing for performance
- 14:16Verify index usage
- 16:06Avoid implicit type conversions
- 20:21Avoid looping in queries
- 23:11Use AND instead of OR
- 26:50Avoid leading wildcards
- 30:56Prefer JOIN over WHERE
- 33:16Use EXISTS over COUNT
- 36:10Top performance techniques recap
- 39:03Additional optimization tips
- 45:25Resources and conclusion
