1Cost-based optimization uses data statistics to determine the most efficient access paths and join orders for query execution.
“this is related to the actual data and you in the underlying relations and different statistics about the data decisions during planning join orders the most common one that people talk about”
2The planner evaluates join orders based on selectivity to minimize the number of rows filtered by predicates.
“you might find that if you're doing a series of joins given whatever predicates are on the joins that it might be better to order them in that way versus the first way based on the selectivity or how many rows are filtered out by a predicate as an example”