HackerTrans
TopNewTrendsCommentsPastAskShowJobs

sscherfke

no profile record

comments

sscherfke
·8 mesi fa·discuss
I think it depends on the use case. When strict ordering of records from multiple processes is not super important and when you also need the UUID7 for other things, it may be more practical (and/or performant) to let the client compute the UUID7.

So, as usual, “it depends”. ;-)
sscherfke
·8 mesi fa·discuss
If you want to a UUIDv7 key for partitioning your table by date (e.g., one partition per day or month), you need to be able to compute the partition range via the minimal UUIDv7 for a given date.

There is some discussion whether or not to add helpers for this to Python‘s uuid7 module: https://github.com/python/cpython/issues/130843#issuecomment...