- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I noticed this thread when I came to post this. This thread had some really interesting talk around Transaction, so it was very serendipitous.
So it seems I'm not the only one wondering when it comes to Transactions; What are the best practices for using Transactions?
I've been running into problems recently as my plugin gets more complicated about having things already be open in either another transaction. Or having an object get opened and then closed in a transaction, and then needing to open it again and receiving an error.
Which lead me to once again start looking online for people's thoughts and opinions and the documentation around Transactions.
So far I see that most people agree if your doing some sort of Read operations, to use a StartOpenCloseTransaction.
I've also read that StartOpenCloseTransaction does not nest the same way StartTransaction does.
I use StartOpenCloseTransaction almost exclusively throught my code, for reading and writing. And I have a lot of helper functions that can optionally take a transaction, and if not given one will open their own StartOpenCloseTransaction. But I think that might be where I'm beginning to run into problems.
So the question is, what are the best practices for using Transactions?
Solved! Go to Solution.