UUIDv7 vs Sequential IDs vs ULID as Primary Keys: What a Real Benchmark Shows
Choosing a primary key looks like a naming decision. In reality, it is a storage decision, because the key decides where every new row lands in the index. In this article, we will compare sequential IDs, random UUIDs, UUIDv7 and ULID on index locality and insert cost. More importantly, we will back the discussion with
