All jobs / Backend developer / Performance

Backend developer interview question · 3–5 years

The interviewer asks: “This query is slow in production but fine on your laptop. What do you do first?” Strongest answer?

The strongest answer

Get the production plan (EXPLAIN ANALYZE / actual plan from the store). Compare row estimates, look for seq scans, nested loops on big sets, and stale stats — don't rewrite blindly.

Why it works

Exactly. The laptop has different stats, cache and data shape. The plan is the artefact. Then you fix stats, the predicate, or one index.

What a good answer covers

Answers that fall short

Who gets asked this

More Performance questions