Home | Previous Page | Next Page   Environment Variables > Environment Variables >

OPT_GOAL (IDS, UNIX)

Set the OPT_GOAL environment variable in the user environment, before you start an application, to specify the query performance goal for the optimizer.

Read syntax diagramSkip visual syntax diagram                     .- -1-.
>>-setenv--OPT_GOAL--+-0---+-----------------------------------><
 
0
specifies user-response-time optimization.
-1
specifies total-query-time optimization.

The default behavior is for the optimizer to choose query plans that optimize the total query time.

You can also specify the optimization goal for individual queries with optimizer directives or for a session with the SET OPTIMIZATION statement.

Both methods take precedence over the OPT_GOAL environment variable setting. You can also set the OPT_GOAL configuration parameter for the Dynamic Server system; this method has the lowest level of precedence.

For more information about optimizing queries for your database server, see your IBM Informix: Performance Guide. For information on the SET OPTIMIZATION statement, see the IBM Informix: Guide to SQL Syntax.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]