We have many applications using embedded sql statements. We are discovering that as the files grow larger the performance diminshes significantly. We have tried using dbmon to ensure indices are not being built on the fly. There are either indices or logicals for all keyed access sequences. Any idea on how to improve performance without stripping out the sql and replacing it with native db2 files?
Software/Hardware used:
ASKED:
February 20, 2006 4:04 PM
UPDATED:
November 30, 2009 7:20 PM
To see what SQL is doing, run Your prog in debug-mode. Just type STRDBG on the command line, run the prog and do a DSPJOBLOG. Go through all the messages and look where time is wasted, if access paths are build and so on. Take care not to get too many joblog entries from SQL or set the job attribute parameter JOBMSGQFL to *WRAP. Else it can abnormal end Your interactive session.
Are you using static SQL or dynamic SQL ?
What is the value of IGNORE_DERIVED_INDEXES in file QAQQINI ?