The vocabulary of the job, one term at a time — what it means, and when you would say it.
Data · intermediate
The number of distinct values in a column, set, or label.
Meaning
The number of distinct values in a column, set, or label.
Cardinality decides whether an index helps. A high-cardinality column such as an email address narrows a query to almost nothing; a low-cardinality one such as a boolean flag narrows it to half the table, and the planner will often prefer a scan. In metrics systems, high-cardinality labels are the usual cause of a storage bill nobody budgeted for: each distinct combination is its own series.
An index on `status` with three values rarely earns its keep; an index on `user_id` with two million usually does.
No published skills are linked yet.
Work through the glossary one card at a time, in a different order every run.
Open the discover feed