top | item 36811024

(no title)

getmeinrn | 2 years ago

I was going to post about "use a UUID", but I was surprised to learn that no UUID uses both timestamp + a random component. You can either get fully random with UUID4, or have a time + MAC based UUID with UUID1. Strange, I would have thought there would exist a UUID that uses time + random to minimize collisions like described in the post.

discuss

order

OJFord|2 years ago

ULID (and I think UUIDv7 draft) has millisecond timestamp + 80b randomness.

wood_spirit|2 years ago

the new UUIDv6, 7 and 8 work the way you deacribe.

dtech|2 years ago

Only v6 and v7, v8 is "whatever you want".

zote|2 years ago

someone else in the thread mentioned UUIDv7

nabogh|2 years ago

Can't find much info about it but is this UUID v7?