Better HN
topnewbestaskshowjobs
Log inSign up

6512398

2 karma · joined Aug 26, 2024 (2y ago) · 1 submissions

Submissions

comment 2y ago · link · parent

Be careful if you're using python.

The python uuid standard library doesn't have V7 yet, and there is a package called uuid7 which is unmaintained, and not in compliance with the latest standard. That's using nanosecond time precision rather than millisecond, which means the leading bits are larger than they are meant to be.

If you use that unmaintained uuid7 package and later change to the correct implementation your uuid7 will go backwards, which is a breaking change considering that monotonicity is a key property of uuidv7.