Is Prisma ORM still slow?
I’ve been using drizzle with postgres for a while. Wanted to use mongodb for another project with nextjs.
I know prisma improved their data connection speed a bit a while back but is it still slow in real world usage or is it fine now?
5 Replies
the problem was never that prisma was slow, the problem was the multiple queries + merging them together at runtime
they added support to join queries, idk if fully available
but probably not for mongodb
Yeah, they also had a heavy GraphQL binary that has since been converted to JSON. But it still has some overhead that for example drizzle does not have. You can check that out here: https://orm.drizzle.team/benchmarks
Drizzle ORM - Benchmarks
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
nope, in itself it isn't
it's just the multiple queries + merging them together at runtime
prisma can do joins
is just not GA yet
Relation queries (Concepts) | Prisma Documentation
Prisma Client provides convenient queries for working with relations, such as a fluent API, nested writes (transactions), nested reads and relation filters.