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 21: Azure Data Factory
Episode 20: the Role of Mentors
Episode 19: How Solid State Disks Can Help SQL Server
Episode 18: BIML
Episode 17: Partitioning
Episode 16 SQL Server Agent
Episode 15 Working at a University
Episode 14: SQL Server Clustering
Episode 13 Apply Yourself
Episode 12: Database Corruption
Episode 11: SQL Server Statistics
Episode 10: Test Anxiety and Test Preparation
Episode 09: Database Automation
Episode 08: Database Design
Episode 07: SQL Server Security
SQL Data Partners Podcast: Episode 06 Build Your Personal Brand
SQL Data Partners Episode 05: Principal of Least Privilege
SQL Data Partners Podcast Episode 04: Advanced Backup Options
SQL Data Partners Podcast Episode 03: Backup and Recovery
SQL Data Partners Podcast Episode 00: Who I Am and What the Podcast is About
Create your
podcast in
minutes
It is Free
Insight Story: Tech Trends Unpacked
Zero-Shot
Fast Forward by Tomorrow Unlocked: Tech past, tech future
Lex Fridman Podcast
Elliot in the Morning