Problem Statement
On which type of column does an index typically give the biggest benefit?
Explanation
Indexes shine when they can skip most rows. Low-selectivity predicates often end up scanning large portions of the table, reducing index value except in bitmaps or special cases.
Code Solution
SolutionRead Only
CREATE INDEX idx_email ON users(email);
Practice Sets
This question appears in the following practice sets:
