▲ | gopalv a day ago | |||||||||||||
UUIDv7 is only bad for range partitioning and privacy concerns. The "naturally sortable" is a good thing for postgres and for most people who want to use UUID, because there is no sorted distribution buckets where the last bucket always grows when inserting. I want to see something like HBase or S3 paths when UUIDv7 gets used. | ||||||||||||||
▲ | vlovich123 a day ago | parent | next [-] | |||||||||||||
> UUIDv7 is only bad for range partitioning and privacy concerns. It's no worse for privacy than other UUID variants if the "privacy" you're worried about leaking is the creation time of the UUID. As for range partitioning, you can of course choose to partition on the hash of the UUIDv7 at the cost of giving up cheaper rights / faster indices. On the other hand, that of course gives up locality which is a common challenge of partitioning schemes. It depends on the end-to-end design of the system but I wouldn't say that UUIDv7 is inherently good or bad or better/worse than other UUID schemes. | ||||||||||||||
| ||||||||||||||
▲ | parthdesai 19 hours ago | parent | prev | next [-] | |||||||||||||
Why is it bad for range partitioning? If anything, it's better? With UUIDv7, you basically can partition on primary key, thus you can have "global" unique constraint. | ||||||||||||||
▲ | wara23arish 20 hours ago | parent | prev [-] | |||||||||||||
confused why it would be worse for range partitioning? I assume there would be some type of index on the timestamp portion & the uuid portion? wouldn’t that make it better for partitioning since we’d only need to query partitions that match the timestamp portion |