You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should push for a better option (or revision to) UUID V7
From an email I sent the authors of that draft:
Given that the "Unix Epoch" value is going to Y2K us in 2038, thus meaning all the sortability of V7 UUIDs would be broken, any chance you would consider revising that format slightly?
I would propose a Epoch-Period of one or two bits at the front of the UUID field. Then right-shift the actual Unix timestamp one or two bits before injecting those values in the rest of the timestamp field in V7 format. That would only lose us one or two bits of timestamp precision while buying us either 68 or 204 more YEARS before we get Y2Ked
If we actually are building this to have some useful K-sortability, seems crazy to be asking for trouble and adopting a representation that will roll-over in 2038... that's not far away.
The text was updated successfully, but these errors were encountered:
IDisposable
changed the title
Consider asking the IETF to make a smarter move on UUID V7 before adopting
RFC: Consider asking the IETF to make a smarter move on UUID V7 before adopting
Jun 30, 2023
That spec changed since the last time I read it, sorry. I'll make the same suggestions to the spec author via the email on the spec. Thanks for pointing that out.
It at least mitigates the problem given that you're at the mercy of the timestamp size now, I think they need to change the V7 spec a bit to include the explicit ability/requirement to set the "leading 4 zeros" to actually be the number of epoch rollovers for the spec (and thus your inherited dependency) to be resilient.
My ultimate point being... when the rollover occurs ON a system where the timestamp is 32 bits, the v7 spec, and thus you by implementation will, if left unchanged, lead to a rolled-over value so after 2038-01-19 00:14:08. Those new rows will sort up to the top. :(
We should push for a better option (or revision to) UUID V7
From an email I sent the authors of that draft:
If we actually are building this to have some useful K-sortability, seems crazy to be asking for trouble and adopting a representation that will roll-over in 2038... that's not far away.
The text was updated successfully, but these errors were encountered: