I need to ensure that a record's value is locked while being read (to verify if a certain number of credits are available), and then I need to update that record (while still locked) to deduct the number of credits available. Is there a best way (or any way) to do this through Magento itself?
Asked
Active
Viewed 320 times
0
-
2Is there a reason you can't use a database transaction? – wierdo Mar 16 '12 at 01:27
-
I don't believe I'm limited in that regard. I imagine testing locks/transactions is difficult, so I'm hoping someone might could point me to a tested-and-tried method for a very simple scenario that always works. – Steven Mar 20 '12 at 09:18