Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   Other Syntax Segments >

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

Read syntax diagramSkip visual syntax diagramOptimizer Directives:
 
|--+- --+-+----------------------------------------------------->
   +-{+---+
   '-/*+--'
 
   .-,------------------------------------------------.
   V                                (1)               |
>----+-| Access-Method Directives |-----------------+-+--------->
     |                          (2)                 |
     +-| Join-Order Directive |---------------------+
     |                            (3)               |
     +-| Join-Method Directives |-------------------+
     |  (4)                                    (5)  |
     +--------| Optimization-Goal Directives |------+
     |                             (6)              |
     +-| Explain-Mode Directives |------------------+
     |  (7)                                 (8)     |
     '--------| Rewrite Method Directives |---------'
 
>--+-----+------------------------------------------------------|
   +-}---+
   '- */-'
 
Notes:
  1. See Access-Method Directives
  2. See Join-Order Directive
  3. See Join-Method Directives
  4. Dynamic Server only
  5. See Optimization-Goal Directives (IDS)
  6. See Explain-Mode Directives
  7. Extended Parallel Server only
  8. See Rewrite Method Directive (XPS)

Usage

Optimizer directives are valid in any query of a DELETE, SELECT, or UPDATE statement. Use one or more 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 OFF, or set the DIRECTIVES parameter in the ONCONFIG file to 0.

Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]