posted 18 years ago
OK, so if the update of the database of all the records selected is not part of the transaction, and the first method which is the 20 minute process fails and rolls back, you would need to change those records back to not being selected.
But if you keep that second method in the first's transaction, then other clients won't see that you have selected them.
I would definitely look at the process that takes 20 minutes to reduce that time, or change your others interval to be over that time. But later if your system is bogged down, that process might take more than 20 minutes to complete and then your interval is too small again.
I definitely think the approach to the process and what needs to be done is in order. I just can't think of a great solution for you at the top of my head right now. Sorry.
Mark