Prisma VS Drizzle in NextJS

  Рет қаралды 3,753

Karthik Nooli

Karthik Nooli

2 ай бұрын

Prisma and drizzle are both the leading typescript ORMs. Prisma takes a more graphiql and high-level way of accessing data, whereas Drizzle gives you a thin wrapper around SQL to get typesafe queries.
I prefer Prisma because it makes more sense in my mind, and the schema language is beautiful!
Drizzle on the other hand is not an ORM to sleep on, it gives you the best performance and doesn't have to bundle a huge query engine into your app, also you only ever make one query!
Check out more about drizzle and prisma on their websites.
prisma.io
orm.drizzle.team
If you enjoyed this NextJS, Prisma and Drizzle content, subscribe to stay up to date with any new videos!
Screen recording software: screen.studio/@20KNk

Пікірлер: 17
@eduardboiko7219
@eduardboiko7219 22 күн бұрын
Exactly the comparison I was looking for, thanks
@baymact
@baymact Ай бұрын
can you not quickly zoom in and zoom out? it makes me confused. Just increase the font size so you dont need to zoom in the text.
@sebs4591
@sebs4591 2 ай бұрын
Awesome overview. I feel like the key distinction is that prisma sacrifices performance and fine grained control in favor of better dx. On the other hand drizzle favors predictable and fast execution with a much smaller layer of abstraction in exchange for worse dx. Another point of difference is how they handle migrations. Prisma encourages you to create actual migrations whereas drizzle uses, as far as I understand it, the equivalent of `prisma db push`. ps. For us mobile viewers it’d be awesome in future videos if you doubled the zoom level in your editor.
@karthiknooli
@karthiknooli 2 ай бұрын
Thank you! Will do :)
@xya6648
@xya6648 2 ай бұрын
thx man, the video was really good. I personally have never used drizzleORM but given this video it just looks easier to work with prisma which has been my goto for a big while now
@ThomasValadez-tv
@ThomasValadez-tv 2 ай бұрын
Wow I didn't know how much I hated Prisma. Drizzle is looking good.
@karthiknooli
@karthiknooli 2 ай бұрын
Glad it helped! Both Prisma and Drizzle have their pro's and con's :)
@codaniel
@codaniel 2 ай бұрын
I like your comparison. I keep going back and forth and which one I want to use.
@karthiknooli
@karthiknooli 2 ай бұрын
Glad it was helpful!
@centereddev
@centereddev 2 ай бұрын
Nice comparison. I haven't used Drizzle extensively, but I'm a huge fan of Prisma and haven't noticed any lack of performance in real world apps. Its certainly easier than what we came from which is Knex and Objection, which was still pretty good! The only weird thing about Prisma is the inability to roll back migrations. Still not quite sure why you can't do that.
@karthiknooli
@karthiknooli 2 ай бұрын
Agreed, if you mess up a migration on prisma it gets very fiddly!
@oleksandr_menchynskyi
@oleksandr_menchynskyi Ай бұрын
Could you please share your font settings? Looks neat
@karthiknooli
@karthiknooli Ай бұрын
Cascadia Code & Consolas 👀
@CarlosEstebanLopezJaramillo
@CarlosEstebanLopezJaramillo Ай бұрын
What do you mean by "relations like Prisma"? relations have existed since long ago, the first time I saw the term used was in Ruby on Rails, the only difference is it's called Associations, same with age old Sequelize, in fact the first one I can remember that mentioned Relations specifically was TypeORM, Prisma didn't invent relations...
@ceopaludetto
@ceopaludetto Ай бұрын
TLDR: It's just DX sugar He probably was referring to the ability to do like query.findOne({ includes: ['other table', 'other table.another'] }) instead of doing a syntax more like a query builder: client.select().from(users).leftJoin(otherTable). If you used drizzle before you know that you can use both drizzle.query and drizzle.select where the first one is more like prisma developer experience and the other one reminds me of the knex days. But off course, I understand your point and the whole complication of using the word "relation" incorrectly when referring to relational database theoretical grammar
@mdfitumi
@mdfitumi Ай бұрын
Why are your models lowercase?
@karthiknooli
@karthiknooli Ай бұрын
Honestly not too sure, seen a mix for prisma models. Also plural and singularity. I just try to keep it consistent across each project, don't think it makes a massive difference, just a QoL change.
Learn Drizzle ORM in 13 mins (crash course)
14:00
Neon
Рет қаралды 20 М.
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 58 МЛН
$10,000 Every Day You Survive In The Wilderness
26:44
MrBeast
Рет қаралды 136 МЛН
We Got Expelled From Scholl After This...
00:10
Jojo Sim
Рет қаралды 36 МЛН
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 15 М.
Migration Lesson: Don't Use Prisma | Prime Reacts
29:16
ThePrimeTime
Рет қаралды 144 М.
A Simple Kafka and Python Walkthrough
11:34
Quix
Рет қаралды 7 М.
useState в React не всегда нужен - query и server components в Nextjs
18:50
PurpleSchool | Anton Larichev
Рет қаралды 4,7 М.
Ryan Dahl introduces JSR at DevWorld 2024
29:13
Deno
Рет қаралды 97 М.
Use Arc Instead of Vec
15:21
Logan Smith
Рет қаралды 135 М.
DONT USE AN ORM | Prime Reacts
25:46
ThePrimeTime
Рет қаралды 197 М.
Is HTMX a Joke??
32:15
Syntax
Рет қаралды 16 М.
Drizzle vs Prisma: Which ORM is right for YOU?
5:59
Kodaps Academy
Рет қаралды 1,1 М.
Prisma 5: Faster By Default | Prime Reacts
19:01
ThePrimeTime
Рет қаралды 38 М.
ТОП-5 культовых телефонов‼️
1:00
Pedant.ru
Рет қаралды 15 М.
сюрприз
1:00
Capex0
Рет қаралды 1,3 МЛН