I have a stored procedure which reads from a source table, does some updates, then sets a status on the source table to indicate the row was processed successfully.
After a fixed number of records, it commits. Unfortunately, it re-opens the cursor after the commit and I think this is causing it to run very, very slowly. I want to change the cursor declaration to have the "with hold" option on it so that I can leave it open during the commit.
I was wondering if anyone could see any problems with this. For example, will I run into locking problems when I try to commit the update on a table which has an open cursor against it ?
After a fixed number of records, it commits. Unfortunately, it re-opens the cursor after the commit and I think this is causing it to run very, very slowly. I want to change the cursor declaration to have the "with hold" option on it so that I can leave it open during the commit.
I was wondering if anyone could see any problems with this. For example, will I run into locking problems when I try to commit the update on a table which has an open cursor against it ?