geek sync i sql server 2016 performance tricks you need to know
TRANSCRIPT
SQL Server 2016Performance Tricks You Need to Know
Pinal Davehttp://blog.sqlauthority.com
Agenda
Preventive Measures
Getting Started with Waits
Practical Performance Issues
Resources3
12
>
1
Common Performance Problems
Slow Application Response TimeFrequent TimeoutsIntermediate Performance ProblemsData & Workload Growth
No One Wants Slow Running Application
Real World Scenario
Courtesy: All icons from www.flaticon.com
SQL Server 2012
Slow Applica
tion
Our application is running slow.
Would you please fix it?
We did everything possible to
improve performance.
What next?
Sure, Boss!
We should upgrade to SQL Server 2014 or SQL Server 2016
Why?
Long Running Query
Q: What is the first thing comes to your mind when you see a query running for a long time?
Please, Help me!
Demo
Now let’s upgrade to
latest version
Why?Do queries
run faster on latest
version?
Query Runs Faster in Latest Versions
Q: Why do some queries runs faster in the latest version of SQL Server?
What is your answer based
on demo?
What we have seen so far…
Higher Compatibility Level +
Latest Cardinality Estimation =
Better Performance
Cardinality Estimation
• Predicts rows your query likely to return• Helps query optimizer to generate the
optimal plan
• Latest CE is more accurate• Latest CE More Optimal Query Plan
Latest CE is a good thing
Compatibility Level
• Provides partial backward compatibility
• SS 2016 onwards new features are tied with new compatibility level
• Compatibility level includes many features including cardinality estimation
Latest CL is the most efficient
Demo
• Latest compatibility level offers the best performance
Great learning so far! Sure
I wish he considers my promotion as
well
Let us differ it to next review cycle
What about my promotion?
Whhaaaat…?
I knew it!
Demo
http://go.sqlauthority.com http://blog.sqlauthority.com
Resources
www.idera.com
Purchase SQL Diagnostic Manager and get SQL Doctor FREE!
Limited Time Offer!
www.idera.com
Try Any of Our Tools Free!