The idea here is that instead of incrementing a single row for a counter, we are now picking a slot and incrementing the count in that slot. This means instead of hammering a single row, we are spreading the updates across 100 rows and reducing the potential for contention.
planetscale.com | The Slotted Counter Pattern
Filed under:
Related Notes
- There’s something qualitative and important that happens when the e...from marcbrooker@gmail.com (Marc Brooker)
- In matrix computations, *sketching* is really a synonym for (linear...from ethanepperly.com
- it's neat how *adding* affine measures is mathematically invali...from buttondown.email
- facts incorporate time [[Think about how we structure data for ours...from InfoQ
- errors are values The Go Programming Language | Gopherfest 2015 |...from The Go Programming Language
- don't communicate by sharing memory share memory by communicat...from The Go Programming Language
- The issue is that when you compress something, you need to add meta...from Jake Lazaroff
- Original layout The original elementary school. Found somewhere ...from joelsimon.net