Re:Type-safe, K-sortable, globally unique identifier inspire...
by TeeWEE on Wednesday June 28, 2023 @03:28PM
(#36511382)
Good, but I dont see a big advantage over UUIDv7
Anyone has some good ones?
[ Parent
| on HN ]
Re:Type-safe, K-sortable, globally unique identifier inspire...
by dloreto on Wednesday June 28, 2023 @03:36PM
(#36511486)
It's based on UUIDv7 (in fact, a TypeID can be decoded into an UUIDv7). The main reasons to use TypeID over "raw" UUIDv7 are: 1) For the type safety, and 2) for the more compact string encoding.
If you don't need either of those, then UUIDv7 is the right choice.