Complete the code to identify the main goal of cost-based optimization.
The primary goal of cost-based optimization is to minimize the [1] of executing a query.Cost-based optimization aims to reduce the cost (resources used) to execute a query efficiently.
Complete the code to show what cost-based optimizers use to choose query plans.
Cost-based optimizers use [1] to estimate the expense of different query execution plans.Cost-based optimizers rely on statistics about data to estimate costs and choose the best plan.
Fix the error in the statement about cost-based optimization.
Cost-based optimization always chooses the query plan with the lowest [1] time.
The optimizer aims to minimize execution time, not compile, network, or parsing time.
Fill both blanks to complete the cost estimation formula.
Total cost = [1] cost + [2] cost
The total cost usually includes CPU cost and I/O cost, which are the main resource consumers.
Fill all three blanks to complete the description of cost-based optimization steps.
First, the optimizer collects [1]. Then it generates [2] plans. Finally, it selects the plan with the lowest [3].
The optimizer collects statistics, generates query plans, and selects the plan with the lowest cost.