Question to anyone who can answer....
I'm looking at using the batch operations and concurrency scoping features in a high volume application. Right now, my code has transaction boundaries around the operations in question. What's not clear to me from reading the docs and searching on here is how to use these features properly with transactions and exception handling. Should I:
A) Put the batching and scoping method calls all inside a transaction? If so, how do I clean up from an exception? Do I just ignore that and let the API clean up via a rollback?
Put the transactions inside the batch and scoping method calls. Again, what do I do in the event of an exception?
If someone has a meatier code sample than the one included in the documentation, it woudl be much appreciated. Since this is a 24/7/365 system, I do not have the luxury of writing code that punts exceptions up for someone else to handle. They must be handled appropriately. I just need to figure out how to do it.