×

PASS DBA Virtual Group

Date/Time: Wednesday, June 24, 2020 2020 16:00 to 17:00 UTC
Location: Virtual

View Event: Think like the Cardinality Estimator

SQL Server uses a phase during query optimization, called cardinality estimation (CE). This process makes estimates bases on the statistics as to how many rows flow from one query plan iterator to the next. Knowing how CE generates these numbers will enable you to write better TSQL code and, in turn, influence the type of physical operations during query execution.

Based on that estimated rows, the query processor decides how to access an object, which physical join to use, how to sort the data. Do you know how the CE generates these numbers? What happens when you have multiple predicates, range predicates, variable values that are ‘NOT KNOWN’ to the optimizer, or you have predicate values increasing in ascending order? Do you know what will happen if your predicate is using a value that is outside of the histogram range?

In this session, I will show you how CE estimates in all these scenarios, and you will walk out better equipped to tackle those nasty, hard to solve query plans.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.


profile for SqlWorldWide on Stack Exchange, a network of free, community-driven Q&A sites

Kubernetes Learning Path

50-days from zero to
hero with Kubernetes

Download eBook

Born when world population was just 3.5B, Winston Churchill and Malcolm X were alive, I still find it amazing that I can... sit in W. Europe participate in a Central America tech conference, with speakers from Bangalore, & Boston
@DataSaturdays (Guatemala), @A_Bansal, @sqlworldwide

Thank you to those attending my session this morning at #DataSaturday #Guatemala .
Slides and code is available at:
... https://github.com/sqlworldwide/Presentations/tree/master/The%20magnificent%20seven%20-%20Intelligent%20Query%20processing%20in%20SQL%20Server

#SQLServer
#AzureSQL

update para los links de los salonoes de #datasaturday

AI : ... https://us02web.zoom.us/j/83563966207?pwd=aUM4Z09xK285R05DUzBhNzZtQnhLZz09

Gestion : https://us02web.zoom.us/j/89554677160?pwd=Nks0U05IMEovNVZHMWxIMUpPcW1yZz09

SQL: https://us02web.zoom.us/j/82767681978?pwd=T3RwTUNnOSsxTDNCSEtBUWRhR21Rdz09

Los demas salones se quedan con sus links actuales

Speaking for the First Ever Data Saturday event today 😇 at 11am EST
Please register here for Data Saturday Guatemala:...
https://datasaturdays.com/events/datasaturday0002.html

Load More...