Updating Statistics for One Table with SAPDBA 

Use

You can use SAPDBA for Informix to update statistics on a single table, so making sure that the query optimizer for the Informix database has up-to-date information when it optimizes queries at execution time. For more information, see Update Statistics with SAPDBA.

Prerequisites

Procedure

Choose Update Statistics ® Update Statistics for One Table in SAPDBA for Informix.

This is identical to the report you can obtain by selecting one of the numbers on the left from the Listing Tables with Deviation with SAPDBA or Listing Tables with Non-Updated Indexes with SAPDBA.

After choosing this action, you see a screen with the following possibilities:

This refers to the leading component of an index and is set to high because the query optimizer can best optimize queries with exact information on such columns. You cannot change this parameter.

This refers to the secondary component of an index and is defaulted to medium because the query optimizer requires fairly accurate information about such columns in order to optimize queries.

This refers to columns that are not part of any index and is defaulted to no update because the query optimizer does not need accurate information about such columns in order to optimize queries.

Choose Execute and you see a message to confirm that SAPDBA is running the update. Then you see a message to confirm satisfactory completion:

Update statistics for table ‘state’ was successful!

 

See also:

Informix documentation