Hi all,
we are trying to do some performance optimizations in our application and are therefore analyzing some slow SQL statements.
We are using the tool DB2 Monitor (
IBM DB2 UDB Performance monitor) for grabbing the long running SQLs.
Yesterday I found a statement which execution time was 12 seconds (measured by our application itself and by DB2 Monitor). I copied the statement and put it into the DB2 Control Center application in order to let it build the execution plan so that I can find the most expensive parts of the statement. But when I execute this same statement in the Control Center it only takes 0.5 seconds. How is that?
In order to exclude any caching issues I re-executed the statement several times in our application and in the Control Center and each time it took 12 seconds in the app and 0.5 seconds in the Control Center.
Can someone explain to me what I am doing wrong? That way I am unable to find my performance leaks.
Thanks in advance,
Olel
DB2 version: "DB2 v9.1.300.257", "s070719", "WR21393" and FixPak "3".
DB2 type: DB2 Enterprise Server Edition, db2ese, 9.1