Javacodegeeks iconJavacodegeeksNov 30, 2026

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

UUIDv7 vs Sequential IDs vs ULID as Primary Keys: What a Real Benchmark Shows

Share this story

Send the public story page.

Keep reading in the app

Open the app view to save this story, compare related coverage, and continue from the same source.

Open in app