UUID v7
What this is
RFC 9562 v7 puts a millisecond timestamp in the high bits so new ids sort roughly by creation time. Postgres and MySQL indexes fragment less than with v4. Still include random bits so ids from two hosts at the same ms do not collide.
Open the generator — v4, v7, and v5 in this tab.
FAQ
- Leaks creation time?
- Yes, to the millisecond. Do not use v7 if the id is a secret or must hide when a resource was created.