All jobs / Database administrator / Performance

Database administrator interview question · 1–3 years

What is a covering index and when is it worth it?

The strongest answer

An index that holds every column the query needs, so the engine never touches the table; worth it for a hot, narrow query, at the cost of a wider index on every write

Why it works

Exactly — no table lookup, but a wider index to maintain; reserve it for hot paths.

What a good answer covers

Answers that fall short

Who gets asked this

More Performance questions