+

Search Tips   |   Advanced Search

Update database statistics

Statistics are information that is collected about the contents of the database tables and indexes. They are used by the cost-based optimizer in the database to influence the approach (query plan) used to run SQL queries. By collecting updated or new statistics, you provide the database optimizer the most up-to-date information about the tables and indexes. Therefore, the query execution plans are generated as efficiently as possible.

This information is important during migration because there are several tables and indexes created and populated during this process. The default statistical information can lead query plans that show degrading performance as the migration progresses and can carry into the runtime performance.


JCR domain

Gather current statistics on all tables found in the JCR domain. If we are using DB2 , run reorgchk and runstats.

Run the statistics on all the columns in all tables and indexes. Gather at least a minimum level of sampling and distribution. Refer to the database documentation for details on updating statistics.


Parent DB2