Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   Optimizer Directives >

Configuration Parameters and Environment Variables for Directives

You can use the DIRECTIVES configuration parameter to turn on or off all directives that the database server encounters. If DIRECTIVES is 1 (the default), the optimizer follows all directives. If DIRECTIVES is 0, the optimizer ignores all directives.

You can override the setting of DIRECTIVES with the IFX_DIRECTIVES environment variable. If IFX_DIRECTIVES is set to 1 or ON, the optimizer follows directives for any SQL the client session executes. If IFX_DIRECTIVES is 0 or OFF, the optimizer ignores directives for any SQL in the client session.

Any directives in an SQL statement take precedence over the join plan that the OPTCOMPIND configuration parameter forces. For example, if a query includes the USE_HASH directive and OPTCOMPIND is set to 0 (nested-loop joins preferred over hash joins), the optimizer uses a hash join.

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