Interviewers don’t expect you to tune databases. They expect you to not do stupid things.
“How does the database find a row?”
Indexes exist to avoid scanning everything.
An index is a separate data structure that helps the database find rows faster.
❗ Don’t index everything blindly.
Constraints stop bad data from entering DB.
