Skip to main content

What Is the Cardinality Estimator and Why Is It Important?

Senior MS SQL
Quick Answer The cardinality estimator predicts how many rows each plan step will produce based on statistics histograms. Wrong predictions lead to wrong join types, bad memory grants, and poor index choices. SQL Server 2014 introduced a new CE (model 120); older compatibility levels use the legacy model. Statistics quality is the root input.

Answer

The Cardinality Estimator (CE) predicts row counts used to choose join types, memory grants, and access paths.

Poor estimates ? poor execution plans.

CE depends on statistics, data distribution, and query structure.

S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice