Problem Statement
Outdated table statistics usually cause which symptom?
Explanation
Statistics inform the optimizer about value distributions. If they are stale, row estimates drift and the plan can degrade.
Refreshing stats helps the optimizer choose the right indexes and join strategies for current data.
Code Solution
SolutionRead Only
-- engine specific -- PostgreSQL autovacuum/analyze or: ANALYZE orders; -- SQL Server: UPDATE STATISTICS orders;
Practice Sets
This question appears in the following practice sets:
