InterviewSolution
| 1. |
When Is Cost Based Optimization Triggered? |
|
Answer» It's IMPORTANT to have statistics on all tables for the CBO (Cost Based Optimizer) to work correctly. If one table involved in a STATEMENT does not have statistics, Oracle has to revert to rule-based optimization for that statement. So you really want for all tables to have statistics right away; it won't help MUCH to just have the larger tables analyzed. Generally, the CBO can change the execution PLAN when you:
It's important to have statistics on all tables for the CBO (Cost Based Optimizer) to work correctly. If one table involved in a statement does not have statistics, Oracle has to revert to rule-based optimization for that statement. So you really want for all tables to have statistics right away; it won't help much to just have the larger tables analyzed. Generally, the CBO can change the execution plan when you: |
|