filmov
tv
Getting Better Query Plans by Improving SQL’s Estimates by Brent Ozar

Показать описание
You’ve been writing T-SQL queries for a few years now, and when you have performance issues, you’ve been updating stats and using OPTION (RECOMPILE). It’s served you well, but every now and then, you hit a problem you can’t solve. Your data’s been growing larger, your queries are taking longer to run, and you’re starting to wonder: how can I start getting better query plans?
The secret is often comparing the query plan’s estimated number of rows to actual number of rows. If they’re different, it’s up to you – not the SQL Server engine – to figure out why the guesses are wrong. To improve ’em, you can change your T-SQL, the way the data’s structured and stored, or how SQL Server thinks about the data.
This session won’t fix every query – but it’ll give you a starting point to understand what you’re looking at, and where to go next as you learn about the Cardinality Estimator.
The secret is often comparing the query plan’s estimated number of rows to actual number of rows. If they’re different, it’s up to you – not the SQL Server engine – to figure out why the guesses are wrong. To improve ’em, you can change your T-SQL, the way the data’s structured and stored, or how SQL Server thinks about the data.
This session won’t fix every query – but it’ll give you a starting point to understand what you’re looking at, and where to go next as you learn about the Cardinality Estimator.
Getting Better Query Plans by Improving SQL’s Estimates by Brent Ozar
Getting Better Query Plans by Improving SQL's Estimates
Secret To Optimizing SQL Queries - Understand The SQL Execution Order
SQL Query Optimization - Tips for More Efficient Queries
Query plans: a map to query performance analysis
'Actual' Execution Plans - or are they...
The Roadmap to Better Performance: Reading Query Plans
How Do I Know If My Query is Good Enough for Production?
How to Read an Execution Plan: Databases for Developers: Performance #1
Slow Query Plans
Quick Stats - Runtime ANALYZE for Better Query Plans - Anant Aneja, Ahana
SQL Server Execution Plans - Part 1
A Better Way to Read Execution Plans Part 1
5 Ways to Improve Your SQL Queries
Query Execution Plans
Get the Actual Execution Plan from the Plan Cache (by Amit Bansal)
Update your database statistics often or your SQL queries will suffer #shorts
Being a Better Developer With EXPLAIN - Louise Grandjonc
Banishing Slow Queries with Intelligent Query Processing
Statistics and Query Plans
'Refactoring Queries For Improved Performance' By Bert Wagner
Exploring Microsoft SQL Server Query Execution Plans - Drew Furgiuele
21 - Query Optimizer Implementation III (CMU Databases / Spring 2020)
How to Think Like the SQL Server Engine, Part 5: Table Variables, Temp Tables, and OPTION RECOMPILE
Комментарии