Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's not designed for this use case. It's for cases where events in the same epoch may as well of happened concurrently.

ULID on the other hand does address this case by providing monotonicity within an epoch for a given producer. So would still need to treat each producer as a separate partition of the key space but you could order X > Y as long as both were produced by same producer (which effectively acts like a sequencer in this case).

EDIT: nvm, the UUIDv7 spec -allows- for arbitrary allocation of the remaining 62 bits which can be used as a counter: https://www.ietf.org/archive/id/draft-peabody-dispatch-new-u... All points for ULID can also apply to UUIDv7 depending on generation algorithm.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: