Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   SQL Statements > SET ENVIRONMENT >

OPTCOMPIND Environment Option (IDS)

The OPTCOMPIND environment option can improve the performance of databases that are used for both decision support and online transaction processing. Use this option to specify join methods for the query optimizer to use in subsequent queries.

For example, the following statement replaces whatever OPTCOMPIND setting was previously in effect with a purely cost-based optimizer strategy:

SET ENVIRONMENT OPTCOMPIND '2'

Use the DEFAULT keyword to restore the system default value, as described in the OPTCOMPIND section of the IBM Informix Guide to SQL: Reference.

For performance implications of the OPTCOMPIND option, see your IBM Informix Performance Guide.

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