Quote:
Originally posted by AlmostCrazy
Hi,
My application's Connection is in default transaction isolation level. I observed that the "INSERT INTO XXX" takes long time to commit if multiple threads are doing the same thing. I guess "Insert into XXX" lock the whole table if the connection is in default isolation level. Can anyone confirm it?
Thx
|
If you're running it on Windows/Unix it depends on the number of locks, the locklist size (LOCKLIST) and the percentage of this locklist which an application is allowed to use (MAXLOCKS).
Both are set at the database level and you can change them with the
db2 update db cfg for <dbname> using .. command.
To find which locks your application is holding you can use the
db2 get snapshot for locks on <dbname> command after enabling the switch to collect lock statistics with
db2 update monitor switches using lock on.
Hope this helps