October 23 – Taiob Ali – Think Like the Cardinality Estimator

Dates: 09/19/2017 - 10/24/2017 Dates: 09/19/2017 - 10/24/2017

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 type of physical operations during a 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?  If your query has only one predicate, the query optimizer will use the histogram to estimate how many rows will be qualified. What happen 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 histogram range?  In this session, I will show you how cardinality estimator estimates in all of these scenarios.  You will walk out of this session with a clear understanding of how the CE generates its numbers and ready to tackle those nasty, hard to solve query plans.


About Taiob:

Taiob Ali is an accomplished technical leader with proven record of success.  His experience includes three major business sectors: financial industry, e-commerce and healthcare.  He is a Microsoft and MongoDB certified Data professional with over 11 years of IT experience both on premise and cloud. Hands on experience in managing large database projects including planning,  large data migration, complex process design, testing and deployment, performance  tuning, long term capacity planning.
Taiob is currently working at “GMO LLC.” as a DBA lead.  Focusing on automation, improving and streamlining operational workflow, plan and prepare for cloud migration.  He is a regular speaker at user groups and SQL Saturday events.

Please RSVP


6:00-6:30 – Networking & Pizza provided by Alexander Technology Group
6:30-6:45 – Announcements
6:45-8:00 – Feature Presentation
8:00-9:00 – Discussion & Networking

Upcoming Meetings

November 27 in Portsmouth – Andy Mallon – Demystifying Data Compression
December – No Meeting enjoy your Christmas and New Year
January 22 – Portsmouth – Jack Corbett – It’s All about the Rules: A Dynamic ETL Architecture


  1. Think Like the Cardinality Estimator | SqlWorldWide - November 14, 2017

    […] Seacoast SQL Server users group on October 23, 2017 […]

Leave a Reply