Skip to content
Preptima
hardScenarioConceptMidSeniorStaff

A query has an index on the filtered column but the plan shows a sequential scan. Walk me through how you would diagnose it.

3 min readUpdated 2026-08-15

Answer

Short answer

Work outward from the plan: confirm the index is actually usable for the predicate as written, then check whether the optimiser is choosing to ignore it because of selectivity, stale statistics, or a type or collation mismatch that makes the predicate non-sargable.

Was this answer helpful?

Likely follow-ups

  • When is a sequential scan genuinely faster than an index scan?
  • What is a covering index and how would it change this plan?
  • How does column order in a composite index affect which queries can use it?
  • How would you confirm the fix rather than assume it worked?

Related questions

Further reading