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

(explicit id opdi004) opdi004 (explicit id opdi005) opdi005 (explicit id opdi006) opdi006 (explicit id opdi007) opdi007 (explicit id opdi008) opdi008 (explicit id opdi010) opdi010 (explicit id opdi011) opdi011

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.