Skip to content
RED SAGSkills
hard20 pts · first answer countsquery-tuningpostgresql

Estimates wrong for city and zip code

WHERE city = 'Dubai' AND zip = '00000' is estimated at 3 rows but returns 90,000, leading to a nested loop. The columns are strongly correlated. What helps the planner most?

Choose one answer