Databases · Middle · Question 12 of 75

In EXPLAIN ANALYZE the planner estimated 10 rows but got 500,000. What does it suggest?

Explanation

Bad estimates lead to bad plans, like a nested loop over half a million rows. Correlated columns may need extended statistics (CREATE STATISTICS).

Further reading

Problem with a question

Databases · Middle · question 12

Test yourself

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

Take this quiz