I have a table with over 100000 records. I want to read the data, process them, and then delete the row if the process is successful, and update the row with an error code if it