Have you ever developed slowly running queries and wondered how to tune your SQL Server queries? In this session you will learn some T-SQL performance tuning tips from a DBA who has a developer background. We will go over how to identify bottleneck queries and how to measure them. We will go over basic indexing concepts for improving workloads. Finally, we will cover some coding patterns that are developer friendly but are not SQL Server database engine friendly and show you how to optimize them.
3. Are you interested in a Code Camp that is
specific to SQL Server training?
January 31st, 2015
https://www.sqlsaturday.com/362/
Training is FREE - Lunch is $10
Interested in All-Day training on
Performance tuning or Becoming an
elite DBA? SQL Server MCM will be
giving precompilers for just $99.
4. Root Cause Analysis for SQL Server
http://theimpactnews.com/wp-content/uploads/2014/04/15409122-needle-in-a-haystack-close-up.jpg
5. Performance Tuning can be like…..
http://www.techexclusive.net/wp-content/uploads/2013/05/WHACK-A-MOLE.jpg
6. SQL Server Bottlenecks
6
Photos: http://www.flickr.com/photos/kaiban/5159888367/lightbox/ and http://www.flickr.com/photos/moodog/504456253 and
http://www.flickr.com/photos/marksze/4231115464 and http://www.flickr.com/photos/vvvracer/5264339383 and
http://www.flickr.com/photos/iphil_photos/4962369046
MEMORY DISK (SPINDLES) CPU
NETWORK LOCKING, BLOCKING & DEADLOCKS
7. Tonight's Agenda
Identify bottleneck queries.
Baseline your queries.
What is an execution plan.
The Good, Bad and Ugly about Indexes.
T-SQL Anti-Patterns
8. DEMOS!
Finding Top Offenders
Profiler and Server Side Traces
Extended Events
Code Tuning
Bookmark Lookup
Inline Scalar Functions
Sargabilty
Table Variable vs Temp Table
CTE vs Temp Table
EXIST vs COUNT
Implicit Conversions
9. Are you interested in a Code Camp that is
specific to SQL Server training?
January 31st, 2015
https://www.sqlsaturday.com/362/
Training is FREE - Lunch is $10
Interested in All-Day training on
Performance tuning or Becoming an
elite DBA? SQL Server MCM will be
giving precompilers for just $99.