Skip to content

Instantly share code, notes, and snippets.

Submissions Lookup Backfill — Problem & Solution Analysis

Problem

The submissions table uses UUIDs as primary keys (~340M records). UUIDs are excellent for distributed ID generation but create a significant problem for systems that need sequential, ordered access to submissions — e.g., migration tooling, cursor-based pagination, or ordered event replay.

Why UUIDs hurt here

Concern UUID PK Sequential integer