CPI4350 - Materialized query tables were considered for optimization

CPI4350
Message Text: Materialized query tables were considered for optimization.
Cause Text: The query optimizer considered usage of materialized query tables for this query. Following each materialized query table name in the list is a reason code which explains why the materialized query table was not used. A reason code of 0 indicates that the materialized query table was used to implement the query.

The reason codes and their meanings follow:

  1. The cost to use the materialized query table, as determined by the optimizer, was higher than the cost associated with the chosen implementation.
  2. The join specified in the materialized query was not compatible with the query.
  3. The materialized query table had predicates that were not matched in the query.
  4. The grouping or distinct specified in the materialized query table is not compatible with the grouping or distinct specified in the query.
  5. The query specified columns that were not in the select-list of the materialized query table.
  6. The materialized query table query contains functionality that is not supported by the query optimizer.
  7. The materialized query table specified the DISABLE QUERY OPTIMIZATION clause.
  8. The ordering specified in the materialized query table is not compatible with the ordering specified in the query.
  9. The query contains functionality that is not supported by the materialized query table matching algorithm.
  10. Materialized query tables may not be used for this query.
  11. The refresh age of this materialized query table exceeds the duration specified by the MATERIALIZED_QUERY_TABLE_REFRESH_AGE QAQQINI option.
  12. The commit level of the materialized query table is lower than the commit level specified for the query.
  13. The FETCH FOR FIRST n ROWS clause of the materialized query table is not compatible with the query.
  14. The QAQQINI options used to create the materialized query table are not compatible with the QAQQINI options used to run this query.
  15. The materialized query table is not usable.
  16. The UNION specified in the materialized query table is not compatible with the query.
  17. The constants specified in the materialized query table are not compatible with host variable values specified in the query.
Recovery Text: The user may want to delete any materialized query tables that are no longer needed.