| ▲ | soontimes an hour ago | |||||||||||||||||||||||||||||||||||||||||||
> Instead of having 1000 rows per shopSKU, why not just have one row per shopping cartSKU? At what point that row is inserted? | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | bijowo1676 an hour ago | parent [-] | |||||||||||||||||||||||||||||||||||||||||||
per my reading of the article, the protection is only needed for a few seconds, while payment is being processed by the payment system. so the row is inserted when Payment is initiated, and row is deleted when Payment succeeds
but that system could be easily improved to reserve item when user Adds item to a cart, to prevent scenario when user adds item to a cart, goes through checkout, and after initiating payment gets "soldout error": | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||