ποΈ
postgresdatabasesbenchmarks
UUID v4 vs v7 as a Postgres primary key, measured
We inserted 2 million rows with bigint, UUID v4 and two kinds of UUID v7 keys. v7 halved the index work of v4, but only when the ids were truly in order: a common v7 function made the index bigger than v4.
3 Dec 20266 min readRead β