SpinTheMic
Pro

Explain it in 60 seconds

Sargable predicates

Data Engineering · SQL · Experienced

What does sargable mean, and how do non-sargable filters hurt performance?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Sargable means the engine can use an index or pruning for the predicate.
  • Wrapping a column in a function usually makes it non-sargable.
  • Leading wildcards like LIKE '%abc' can't use normal indexes.
  • Implicit type conversions can also block index use.
  • Rewrite filters to compare the raw column with ranges.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics