System Design · Junior · Question 59 of 75

What does a database index do?

Explanation

Without an index, filtering scans the whole table. Index columns used in WHERE, JOIN and ORDER BY of frequent queries.

Further reading

Problem with a question

System Design · Junior · question 59

Test yourself

Take the System Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz