ch100
2007-06-30 09:36:00 UTC
It is sometimes a requirement to do a commit after a certain number of
transactions rather than wait until the end of processing. This would
typically happen where a large number or records are updated and waiting to
the end would create a huge update transaction with a lot of locked records
and memory implications. Embedding a ttsbegin/ttscommit after a certain
number of iterations within the 'while select for update' loop will commit
the transaction but will reset the loop to the start of the select cursor.
This results in a never ending loop. Is there any solution for this problem ?
transactions rather than wait until the end of processing. This would
typically happen where a large number or records are updated and waiting to
the end would create a huge update transaction with a lot of locked records
and memory implications. Embedding a ttsbegin/ttscommit after a certain
number of iterations within the 'while select for update' loop will commit
the transaction but will reset the loop to the start of the select cursor.
This results in a never ending loop. Is there any solution for this problem ?