All jobs / Database administrator / Performance

Database administrator interview question · 3–5 years

The largest tenant’s dashboard times out every morning while every other tenant loads instantly.

The same parameterised query is fast for most customers and terribly slow for one large customer. What is going on?

The strongest answer

The cached plan was built for a typical parameter value and is wrong for the skewed one — parameter sniffing; I can recompile that query, optimise for a representative value, or split the code path

Why it works

Exactly — skew plus plan reuse; fix it at the query, not the whole cache.

What a good answer covers

Answers that fall short

Who gets asked this

More Performance questions