The value of the STMT_CACHE configuration parameter enables or disables the SQL statement cache, as section Enabling the SQL Statement Cache describes.
Figure 11 shows how the database server uses the values of the pertinent configuration parameters for the SQL statement cache. Further explanation follows the figure.
When the database server uses the SQL statement cache for a user, it means the database server takes the following actions:
For information on what qualifies an SQL statement for the cache, see the SET STATEMENT CACHE statement in the IBM Informix: Guide to SQL Syntax.
The following parameters affect whether or not the database server inserts the SQL statement into the cache (User 1 in Figure 11):
The default value for STMT_CACHE_NOLIMIT is 1, which means the database server will insert entries into the SQL statement cache even though the total amount of memory might exceed the value of STMT_CACHE_SIZE.
When STMT_CACHE_NOLIMIT is set to 0, the database server inserts the SQL statement into the cache if the current size of the cache will not exceed the memory limit.
The following sections provide more details on how the following configuration parameters affect the SQL statement cache and reasons why you might want to change their default values.
Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]