Databases · Junior · Question 44 of 75

Why not add an index on every column?

Explanation

Add indexes for real query patterns and remove unused ones. PostgreSQL's statistics views show how often each index is used.

Further reading

Problem with a question

Databases · Junior · question 44

Test yourself

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

Take this quiz