Prisma vs. Drizzle: What I Learned After Six Months in Production
I used Prisma for the first version of Lunary. I switched to Drizzle for Spellcast. Six months later, both are in production. Here's what I actually learned.
Why I switched
The honest answer: bundle size and cold start performance.
Lunary runs on Vercel. Prisma's query engine is a compiled Rust binary that ships as a dependency. In a Next.js App Router app, that adds meaningful cold start time on serverless functions. For a hobby-tier app trying to keep latency low, it was noticeable.
Drizzle has no query engine. It generates raw SQL and sends it directly to the database driver. The whole library is around 30KB. Cold starts are fast.
That was the original reason. Six months in, there are more.
What Drizzle actually does differently
Schema as code, not SDL
Prisma defines schema in its own SDL file (schema.prisma). Drizzle defines schema directly in TypeScript:
// Prismamodel Post {...
Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE