What does index cardinality measure and why does it matter for query optimization?

SQL Data Analyst Medium

SQL Data Analyst — Medium

What does index cardinality measure and why does it matter for query optimization?

Key points

  • High cardinality means more unique values in the column
  • Selectivity of the index increases with high cardinality
  • Helps in optimizing query performance by reducing the number of rows to scan

Ready to go further?

Related questions