Re: mysql innodb transaction concurrency
Posted by:
Peter Brawley ()
Date: August 06, 2011 12:57PM
> In products table, there is another field called max_can_sell_to_individual. I have to check the current inventory and also have to check the personal limit.
So build that logic into the transaction
> Now, I can maintain inventory but I have to check the individual limit also. That can be found from purchases table.
Ditto.
> And coming to you suggestion, if transaction fails, I have to refund money also. And that would incur transaction charges to client ans also users doesn't feel good.
Payment processing can be the last step of the transaction.
PB