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 278: Running SQL Server on Azure VMs
Episode 277: PostgreSQL for the SQL Server Crowd
Episode 276: Dynamic SQL and Testing in Isolation
Episode 275: Machine Learning and Power BI
Episode 274: A CMM Case Study
Episode 273: The Capability Maturity Model for Data Professionals
Episode 272: Performance Tuning Scripts
Episode 271: Pass Summit 2023 Wrap-Up
Episode 270: Medallion Architecture
Episode 269: Why Do I Need a Managed Service Provider?
Episode 268: AI and the Future of the Database
Episode 267: Microsoft Fabric
Episode 266: Working with Containers
Episode 265: WHY and What's Next
Episode 264: Verified Backups
Episode 263: SQL Server This ‘n That
Episode 262: Learning Azure Synapse Pt 1
Episode 261: The Data Lakehouse
Episode 260: Contained Availability Groups
Episode 259: T-SQL Snapshot Backups
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
The Unbelivable Truth - Series 1 - 26 including specials and pilot