by bijowo1676 · 3mo ago · 0 comments
but again, my idea was:
1) do not use throwaway placeholder rows to imitate a single item
2) do not rely on db engine to decide which transaction gets committed first (which customer gets the last item)
3) model queue explicitly by introducing counter field that sorts and prioritizes customers' orders and decides which order gets fulfilled and which customers gets the last item> do not use throwaway placeholder rows to imitate a single item
The point of using multiple rows for one product is to distribute the locks.