Built-in Intelligence with Azure SQL and SQL Server 2022
summary
Covers practical features in Azure SQL/SQL Server 2022: query store hints let DBAs persist plan hints without changing code and demo shows using OPTION(RECOMPILE) to fix a table-scan vs bookmark lookup problem; parameter sensitive plan optimization allows multiple plans (up to 200 stored, 27 in cache) for different parameter cardinalities; memory-grant percentile persistence smooths grants; DOP feedback ladders down (never below 2) to reduce wasted parallelism; optimized plan forcing replays compilation rules; approximate percentile cuts a 6.3s query to ~1.4s.
AI-written summary · about
chapters (24)
- 0:00Intro
- 3:08Query Store - Custom capture policies
- 3:59What are Query hints?
- 6:26Applying Query hints Today
- 7:40Introducing Query Store hints
- 9:09Using Query Store hints
- 18:06Database Compatibility Level Family
- 19:42Intelligent Query Processing Feature Family
- 21:46Parameter-sensitive plan problem
- 23:30Common Parameter-sensitive plan workarounds
- 24:57Parameter Sensitivity Plan (PSP) optimization
- 26:03Boundary value selection (Example of Real Estate agents portfolio)
- 27:23Feedback Workflow
- 28:25Memory Grant Feedback (MGF)
- 29:09With MGF Percentile Grant
- 30:36Parallelism today
- 36:41Cardinality Estimation today
- 37:43What is CE Feedback?
- 38:40CE Feedback implementation
- 39:33CE Feedback Scenarios (High Level) Correlation
- 40:21Leveraging CE Feedback
- 42:46Query compilation today
- 43:55Optimized Plan Forcing using Query Store
- 46:31Approximate QP: Approximate Percentile
related talks
49mPerformance Features in SQL Server and Azure SQL
22mEmpowering SQL: Mastering Intelligent Query Processing in 20 Minutes
53mBanishing Slow Queries with Intelligent Query Processing
22mEmpowering SQL: Mastering Intelligent Query Processing in 20 Minutes
22mEmpowering SQL: Mastering Intelligent Query Processing in 20 Minutes
20mElevating SQL Server Performance with Query Store Hints
51mMaking the SQL Query Processor Work for you
20mElevating SQL Server Performance with Query Store Hints
