Interview practice question
Which columns should you index?
Backend Engineering · Relational Databases · Beginner
You are designing a users table. Which columns would you index and why?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Primary key (automatic).
- Unique email/username.
- Columns used in frequent WHERE/JOIN.
- Foreign keys.
- Avoid indexing everything.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.