Re:The Slotted Counter Pattern
by iv42 on Monday August 01, 2022 @02:49PM
(#32310484)
Also, it's basically identical to the pattern described as Counter Tables in "High Performance MySQL" (3rd edition), published in 2012.
[ Parent
| on HN ]
Indeed, it also calls them "slots":
> You can get higher concurrency by keeping more than one row and updating a random row... just choose a random slot and update it
https://www.oreilly.com/library/view/high-performance-mysql/...