logoalt Hacker News

themafiayesterday at 7:06 PM2 repliesview on HN

Why not just use UUIDv8? The format allows you to use the upper bits for a timestamp and the lower bits for any value you like, including just a random value.


Replies

michelppyesterday at 7:18 PM

Because then you leak the timestamp. The idea is, present what looks like v4 random uuids externally, but they are stored internally with v7 which greatly improves locality and index usability. The conversion back and forth happens with a secret key.

show 1 reply
pluto_modadicyesterday at 11:17 PM

this is solved by reading the repo's README: hiding timing information.