Optimizer Directives
The Optimizer Directives segment specifies keywords that you can use to partially or fully specify the query plan of the optimizer. Use this segment whenever you see a reference to Optimizer Directives in a syntax diagram.
Syntax
Optimizer Directives
{ - - + | { + | / * + }
{ | <Access-Method Directives> [] | <Join-Order Directive> [] | <Join-Method Directives> [] | <Star-Join Directives> [] | <Optimization-Goal Directives> [] | <Explain-Mode Directives> [] | <Statement cache directive> [] }
[ { } | * / } ]
Usage
Use one or more optimizer directives to partially or fully specify the query plan of the optimizer. The scope of the directive is the current query only.
Directives are enabled by default. To obtain information
about how specified directives are processed, view the output of the
SET EXPLAIN statement. To disable directives, set the IFX_DIRECTIVES environment
variable to 0
, or set the DIRECTIVES parameter in
the ONCONFIG file to 0
.
The syntax diagram above is simplified, and does not show that the closing comment indicator must follow the same comment style as the opening comment indicator. For more information, see Optimizer Directives as Comments.