When we write our queries to the database, SQL Server has to go and figure out the best way to go and bring back the data you asked for. A query plan is created to help SQL Server remember how to get the data for this query. It takes time to make these queries, so the database wants to limit the number of times it has to create the plans so it will try to reuse the plan as much as possible.
Our topic for today's episode is query plan reuse and the pros and cons with this concept. We will also touch on the concept of parameter sniffing--a technique SQL Server uses to try and figure out the best values to use for the execution plan with the hopes the plan will help the most queries. Special thanks to James Youkhanis for the suggestion.
The shownotes for today’s episode is found at http://sqldatapartners.com/2017/07/04/episode-103-plan-reuse/ and have fun on the SQL trail.
Episode 76: Availability Group Improvements
Episode 75 Storage Testing
Episode 74: 2016 Year in Review
Episode 73: Performance Tuning
Episode 72: Test Automation in BI
Episode 71: BI Tools of the Trade
Episode 70 SQL Server on Linux
Episode 69: Our SQL Server Setup Checklist
Episode 68: SSIS Administration
Episode 67 Dear Developer
Episode 66: Microsoft's Professional Program
Episode 65: Do you have good data architecture?
Episode 64: Certifications and Career Development
Episode 63: New Data AvailabilityFeatures in SQL Server 2016
Episode 62: Ask Me Anything--Cortana Intelligence Suite
Episode 61: The Debrief
Episode 60: What is U-SQL?
Episode 59: Mirroring, Availability Groups, Replication, and Log shipping
Episode 58: 4 ways to stay sharp with technical learning
Episode 57: What SQL Server feature would you change?
Create your
podcast in
minutes
It is Free
Insight Story: Tech Trends Unpacked
Zero-Shot
Fast Forward by Tomorrow Unlocked: Tech past, tech future
The Unbelivable Truth - Series 1 - 26 including specials and pilot
Lex Fridman Podcast