Hacker News new | ask | show | jobs
by thinkharderdev 1570 days ago
Typically the SQL statement will be parsed to a logical plan first, which then gets optimized and then turned into a physical execution plan. Statistics are used for a second layer of optimization on the physical execution plan.