4 ms·
Why use UUIDv7 over ULIDs? As Lazare points out in this thread they're basically the same thing, except with ULIDs you get those 6 extra bits of randomness bac
by LAC-Tech 3y ago
Why use UUIDv7 over ULIDs?
As Lazare points out in this thread they're basically the same thing, except with ULIDs you get those 6 extra bits of randomness back that UUIDs have to use for metadata.
- oittaa 3y agohttps://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis-11#name-motivation https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc... ULID isn't an "official" standard like UUID. Having a real standard usually promotes interoperability and makes it easier to use. Additionally as others have pointed out you can already use UUIDv7 with some databases since it's just 16 opaque bytes and the database doesn't care what's actually in the UUID field.
- jhealy 3y agoI'm not the author, but I work at the same company. ULIDs are nice, but we're a 10 year old company with many TBs of data across multiple logical databases and most rows had UUIDv4 ids. Maybe if we were starting from scratch ULIDs would have been an option, but given where we were UUIDv7 was a much easier transition.