Using DB2 8.1 FP5 on Win2000
After creating and configuring a new database, we stop db2 and start it
again. We then launch our application and the SQLExecute calls start slowly
and get progressively slower. Our application basically looks like this:
get an environment handle
get a connection handle
connect to the database
while we have more data to process
read and prepare 1000 rows of data
get a statement handle and prepare it
SQLExecute( the statement )
commit the changes
Each time through this loop, the SQLExecute call takes about 1 second longer
than the previous time.
The really odd thing about this is that is we stop our application and then
restart it, the slow down does not occur and each SQLExecute call takes less
than 1 second to run.
This application has been running under DB2 V2.1 for OS/2 and then DB2 V5.2
for Windows NT and Windows 2000 since 1996 with no problem. Even when we
recompile to the V8.1 libraries, the problem persists.
Can anyone explain this? It is possible that we are missing a configuration
option that will resolve this issue, but there are no obvious changes that
we can see.