UUID v7 was ratified in May 2024 as part of RFC 9562. If you haven't heard about it yet, you're not alone — but you should have, because it solves a real performance problem with UUID v4 in databases. Here's what changed and when you should switch.
The problem with UUID v4 UUID v4 is randomly generated. That's its feature — 122 bits of randomness, cryptographically secure, essentially no collisi