Appendix C. DB2 Performance Expert For Business Intelligence 595
better to not use parameter markers in the statements, but rather to specify the
values as literals directly. This leads to DB2 statement compilation with literally
each execution. But the time that is required by this approach is normally less
than the time that would be spent executing a less optimal plan that the optimizer
has created due the missing knowledge of parameter marker values.
The following query can be used to check all statements that are executed by the
system for the use of parameter marker values. Refer to “Linking top 10
statements to execution details” on page 568 for information about creating new
queries. The result list shows one entry per such statement ...