
- 5 min read
Prefixed IDs in Prisma and Postgres: what they cost and when they're worth it
A practical look at Stripe-style prefixed IDs in Prisma: how nanoid, ULID, UUIDv7 and cuid2 compare, what string primary keys cost Postgres, and how to migrate.
Notes on engineering, product and building things: the tools I ship, and what I learn shipping them.

A practical look at Stripe-style prefixed IDs in Prisma: how nanoid, ULID, UUIDv7 and cuid2 compare, what string primary keys cost Postgres, and how to migrate.