Evaluating SQL 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
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 and deployment.
To see a comprehensive list of metrics for both static and dynamic SQL, including the packages and statements that are using Db2ZAI models, packages that are candidates for rebinding, the SQL statements that have been improved by Db2ZAI models, the SQL statements that have regressed, and current status of packages and statements, go to the SQL optimization dashboard.
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.
After models have been trained and deployed, you will be able to see the model counts on the SQL optimization dashboard.