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 56: What is your favorite SQL Server 2016 Feature?
Episode 55: The new and improved SQL Server Reporting Services
Episode 54: An Executive Panel Interview
Episode 53: THE Argenis Fernandez interview on storage
Episode 52: Statistics are coming to the DB R you ready?
Episode 51: A PowerShell Story
Episode 50: SQL Server Settings
Epsidode 49: Temp Tables VS Table Variables
Episode 48: Is the Data Warehouse Dead?
Episode 47: Helping Your Data Find A Home
Episode 46: Unraveling Code
Episode 45 Service Broker
Episode 44: Azure SQL Data Warehouse
Episode 43: Why is ETL so hard?
Episode 42: Who made that change? Find out with Auditing
Episode 41: Index Maintenance
Episode 40: SQL Server Compression
Episode 39: Set statistics and StatisticsParser.com
Episode 38: SQL Server 2016 Feature Review
Episode 37: PowerBI and the DBA
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