Monitoring Optimizer Statistics (Informix)
Use
You can use the SAP/Informix database monitor to monitor Informix optimizer statistics. The Informix cost-based optimizer needs information on the data in a table to work out how best to process a query, as shown in the following example:

Consider a table
The update statistics command tells the Informix optimizer about the distribution and selectivity of data in table columns. In this example, the optimizer could then recognize that it is much more efficient to retrieve data with the
NAME index than the STATE index.Prerequisites
SAP and Informix have developed tools to run update statistics efficiently. These tools are preferable to running update statistics with the Informix tool
dbaccess . For more information on using these tools, see SAP Note 12184.Procedure
This provides information on the most recent update statistics run for the tables displayed. If you see a table with a high level of activity and an old date for the last statistics update, this might indicate that the optimizer is choosing the wrong path for querying this table.
You can display information for a specified table or for all tables. Note that this operation consumes a lot of processing power if you run it for the entire database.