by codedokode · 3mo ago · 0 comments
Also, I wonder why they could not have a row status (available/reserved) and UPDATE it instead of deleting the rows.
> Also, I wonder why they could not have a row status (available/reserved) and UPDATE it instead of deleting the rows.
This requires a row per item unit, doesn’t it? If you have 50k units you’ll have to track status of every item, meaning 50k rows. They also mention this as a rationale to use at most 1k rows, and treat it as a buffer.
0: https://dev.mysql.com/doc/refman/8.4/en/innodb-multi-version...