Evaluating query performance
Db2ZAI evaluates the performance your SQL statements in order to determine whether the performance can be improved or to safeguard against degradation.
Before you begin
For an example of using SQL optimization to evaluate query performance, see Improving access path performance with Db2ZAI SQL optimization.
About this task
After you enable Db2ZAI, Db2® will start collecting query execution history. When an appropriate number of SQL execution records has been collected, Db2ZAI will trigger model training.
- Packages and SQL statements that have Db2ZAI models
- SQL statements that are ready for access path exploration
- SQL statements that have pending or deployed access path recommendations
- SQL statements that have regressed that were automatically resolved by Db2ZAI
It's important to keep in mind that the statistics that Db2ZAI displays are cumulative, and thus will change over time.
For static SQL, the automatic reversion to the prior good access path requires the activation of Db2 function level V12R1M505. FL505 delivers phase-in REBIND support in Db2. If your Db2 has an activated function level that is less than FL505, Db2ZAI will display a recommendation on the SQL optimization dashboard to manually REBIND the package after a regression is detected.
Db2ZAI will also display a recommendation to manually REBIND the package if function level 505 is activated, but you've chosen to disable automatic rebind for your connection.
Procedure
To evaluate SQL Performance:

