All jobs / Database administrator / Performance

Database administrator interview question · 3–5 years

The plan cache is full of thousands of near-identical statements that differ only by literal values. Impact and fix?

The strongest answer

Every statement compiles from scratch and evicts useful plans, wasting CPU and memory; the fix is parameterised queries in the application, with the engine’s forced parameterisation as a stopgap

Why it works

Exactly — unparameterised SQL is the root cause, and it usually also means injection risk.

What a good answer covers

Answers that fall short

Who gets asked this

More Performance questions