Conceptual
Login

Predicate Selectivity

Selectivity is the fraction of rows a predicate passes, estimated from statistics (e.g. equality on a column with k distinct values ≈ 1/k). It drives both the scan choice — low selectivity favors an index — and the estimated size of every intermediate result.

Questions this Concept answers

  • Why does a highly selective predicate make an index worth using?