Note on The Slotted Counter Pattern via planetscale.com
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.
Reference
-
Permalink (
2023.NTE.607) - On
- In Notes
- Tagged data, optimization
- From The Slotted Counter Pattern
- Edit
| ← Previous | Next → |
| Functional Strength Training 🏋️ | Functional Strength Training 🏋️ |