In my thinking of using ORM for inventory control, it should be get a stock, minus the request quantity, and then update to the database. so if inventory = 6 pc a = 6, pc b = 6, then pc a request to remove 2 items and process the value = 4 and then update to db, but pc b keep the value = 6 and then remove 3 items, and the update to db, it seen to be value = 3 in the inventory, it's about the concurrency control, how to let it better? Thanks