DB2 10.5 for Linux, UNIX, and Windows

Rules for updating table and nickname statistics manually

There are certain guidelines that you should follow when updating statistics in the SYSSTAT.TABLES catalog view.

In a federated database system, use caution when manually updating statistics for a nickname over a remote view. Statistical information, such as the number of rows that a nickname returns, might not reflect the real cost of evaluating this remote view and therefore might mislead the DB2® optimizer. In certain cases, however, remote views can benefit from statistics updates; these include remote views that you define on a single base table with no column functions applied to the SELECT list. Complex views might require a complex tuning process in which you tune each query. Consider creating local views over nicknames so that the DB2 optimizer knows how to derive the cost of those views more accurately.