CPI4325 | |
---|---|
Message Text: | Temporary result file built for query. |
Cause Text: | A temporary result file was created to contain the results of the query
for reason code &4. This process took &5 minutes and &6 seconds.
The temporary file created contains &7 records. The reason codes and their
meanings follow:
|
Recovery Text: | For more information about why a temporary result was used, refer to the Data access on DB2 UDB for iSeries: data access paths and methods. |
A temporary result table was created to contain the intermediate results of the query. The results are stored in an internal temporary table (structure). This allows for more flexibility by the optimizer in how to process and store the results. The message help contains the reason why a temporary result table is required.
In some cases, creating a temporary result table provides the fastest way to run a query. Other queries that have many rows to be copied into the temporary result table can take a significant amount of time. However, if the query is taking more time and resources than can be allowed, consider changing the query so that a temporary result table is not required.