Enterprise Edition Home |
Express Edition Home |
Previous Page | Next Page Optimizer Directives >
Consider the following guidelines when you use directives:
- Examine the effectiveness of a particular directive frequently
to make sure it continues to operate effectively.
Imagine a query in a production program with several
directives that force an optimal query plan. Some days later, users
add, update, or delete a large number of rows, which changes the
nature of the data so much that the once optimal query plan is no
longer effective. This example illustrates how you must use directives
with care.
- Use negative directives (AVOID_NL, AVOID_FULL,
and so on) whenever
possible. When you exclude a behavior that degrades performance,
you rely on the optimizer to use the next-best choice rather than
attempt to force a path that might not be optimal.
Enterprise Edition Home |
Express Edition Home |
[ Top of Page | Previous Page | Next Page | Contents |
Index ]