| ▲ | firasd 2 hours ago | |||||||
My understanding is: your proposal is not very different from what Shopify is doing except they are tracking 'reserved units' (one per row) and you are proposing tracking 'orders' as the temporary state to then reconcile back with inventory quantities. | ||||||||
| ▲ | isignal 2 hours ago | parent [-] | |||||||
Yes, at a high level. It doesn't rely on skip locked, which is not cheap at DB level. DB has to still typically run query and keep going until it finds an unlocked item. Deducting and checking inventory counts are simpler ops inside the DB. | ||||||||
| ||||||||