Is Drizzle Really Better Than Prisma?

  Рет қаралды 63,108

Web Dev Simplified

Web Dev Simplified

Күн бұрын

Prisma has been one of the most popular TypeScript first database ORMs for the last few years, but recently Drizzle has grown in popularity due to its customization, speed, and ease of use. In this video I will compare everything about Prisma and Drizzle so you will know once and for all which database ORM is best for your project.
📚 Materials/References:
Prisma Crash Course Video: • Learn Prisma In 60 Min...
Drizzle Crash Course Video: Coming Soon
🌎 Find Me Here:
My Blog: blog.webdevsimplified.com
My Courses: courses.webdevsimplified.com
Patreon: / webdevsimplified
Twitter: / devsimplified
Discord: / discord
GitHub: github.com/WebDevSimplified
CodePen: codepen.io/WebDevSimplified
⏱️ Timestamps:
00:00 - Introduction
00:39 - What Are Drizzle/Prisma
01:08 - What Database They Work With
02:03 - Studio App
02:33 - CLI
03:15 - Setup Steps
05:51 - Schema Definitions
08:32 - CRUD Operations
13:25 - Type Safety
14:14 - Performance
16:39 - Documentation
17:44 - Conclusion
#DrizzleVsPrisma #WDS #TypeScriptORM

Пікірлер: 258
@acolyte0
@acolyte0 Ай бұрын
Thank you for your thorough research. I needed the expert's opinion about those two.
@mistart1633
@mistart1633 Ай бұрын
Expert is a big word
@jeduan
@jeduan Ай бұрын
The code for product discounts at 10:22 is an N+1 query which is bad. Drizzle’s lack of magic makes it more clear what’s going on behind the scenes
@xavier.whisper.underneath
@xavier.whisper.underneath 24 күн бұрын
Is the way Prisma is doing avoiding N+1 query or not really?
@realbigsquid
@realbigsquid Ай бұрын
Drizzle is pretty great. I spent so much time fighting with prisma do get it to do what I wanted. Although I did have to write a library worth of custom types for drizzle , i was able to get it working
@snipernosnipey8162
@snipernosnipey8162 10 күн бұрын
thats what copilot is for
@gavrshchuk
@gavrshchuk 2 ай бұрын
Waiting for a new Prizzle ORM after a few weeks 🥴
@ravi_sorathiya
@ravi_sorathiya Ай бұрын
Just go the Laravel bubble for 2 week and you will find this thing absolutely trash
@flavourfulski
@flavourfulski Ай бұрын
rizzma
@thiagoantunes892
@thiagoantunes892 16 күн бұрын
@@flavourfulski ligma
@the_yugandharr
@the_yugandharr 2 ай бұрын
Looking forward to the drizzle crash course!
@DomskiPlays
@DomskiPlays 2 ай бұрын
While I knew just about all of this already, it's great to see your examples and explanation for people that didn't and are just trying to pick their ORM. Great video!
@ahmedaq9018
@ahmedaq9018 Ай бұрын
Thanks a lot for the great video… Please consider creating a short tutorial on implementing live updates (real time) notifications for a very simple social media functionality like (some liked your post). Simple app the aim of which is to show how to implement notifications (not chat app) in Nextjs 14 with the server actions. TS optional but preferable! 😅
@zivtamary
@zivtamary Ай бұрын
Kysely as query builder, and Prisma for studio/schemas/migrations ✅
@carloslfu
@carloslfu 29 күн бұрын
Great video!
@aqibmalik6313
@aqibmalik6313 Ай бұрын
hey Kyle, when is the big video coming that u talked about in ur previous video im eagerly waiting
@Leo-tf7gu
@Leo-tf7gu Ай бұрын
ORMs like Prisma etc. generate large files when you have 100s of relational tables. Specially when you use extra plugins for validations and such, it quickly starts to unravel. Best for smaller apps with less than 30 tables. The amount of code / metadata generated by Prisma and other plugins is humungous.
@gian858
@gian858 20 күн бұрын
I like that point of view. We mostly read people having a very black/white view on things. One is good other is bad. For me as a solo dev in a project I prefer the simplicity and DX of prisma, drizzle syntax is a lot more complex imo, but I can see how it's better at bigger or different types of projects.
@prawnstars3160
@prawnstars3160 7 күн бұрын
@@gian858 drizzle syntax literally looks like standard SQL. dunno what u mean by more 'complex'
@gian858
@gian858 6 күн бұрын
@@prawnstars3160 I think the whole point of Prisma was DX. Meaning it abstracts a lot of complication mainly from the model definition and does it for you, like for example creating many to many relations being literally just 2 different lines, it's so easy to do and to read/analyse. But if I hit speed bottlenecks in the future I'd gladly switch to drizzle
@Nextdesu
@Nextdesu Ай бұрын
so far only thing that feels strange in drizzle is pgTable and other such staff like if i want to change database i would have to siginifically change my code.
@mikr13
@mikr13 Ай бұрын
I've fought so much with Prisma to get performance in cases of join. Ended up writing my own statement cuz Prisma does join very inefficiently with on and stuff. Hope this solves it!
@lapppius
@lapppius Ай бұрын
Drizzle is the first ORM I've used. I like that it uses TypeScript instead of Prisma's own solution, and that it's closer to SQL. However, I believe it's not mature enough yet to implement it in a big project in a productive way. I spent a couple of days setting up Drizzle with NextAuth, only to find out that the Drizzle Adapter doesn't implement some features Prisma offers out of the box , which would have saved me lots of time.
@ProtectedClassTest
@ProtectedClassTest Ай бұрын
Will be implementing nextauth adapter soon, what issues di you face with drizzle?
@Finch-Bro
@Finch-Bro Ай бұрын
yep, and I prefer the syntax of Prisma. easy to understand
@karlstein9572
@karlstein9572 Ай бұрын
I don't know if Drizzle follows the semver, but the version is not yet 1.0.0, which usually means "ready for production".
@marcuss.abildskov7175
@marcuss.abildskov7175 23 күн бұрын
Drizzle is not an ORM.
@ThiagoVieira91
@ThiagoVieira91 2 ай бұрын
Kyle, do you know if Drizzle also has performance gains for row reading? From what I know Prisma reads all rows from a given table, then filters the request data in its Rust binaries. It can be costly. Does Drizzle only read the rows specified in a given query?
@KennEjima
@KennEjima 2 ай бұрын
Yes. Better yet, Drizzle guarantees a single call always results in a single SQL.
@ThiagoVieira91
@ThiagoVieira91 2 ай бұрын
@@KennEjima Awesome! This is the performance I was looking for! I have little knowledge in SQL, so I will keep starting my projects using Prisma, then migrate to Drizzle for production.
@nickolaizein7465
@nickolaizein7465 20 күн бұрын
From some times I start to use objection-js as orm and knex-js as query builder if I need low level control. Also there is Kysely from creator of objection, but I dont used it before
@the_yugandharr
@the_yugandharr 2 ай бұрын
Lesgooo Drizzllleeee!!!
@emman10
@emman10 Ай бұрын
The insert method of Drizzle ORM also accepts arrays, allowing you to insert multiple discounts...
@luca4479
@luca4479 Ай бұрын
I did not know this… Thanks bro!
@jonnyborgesdev
@jonnyborgesdev Ай бұрын
Exactly!
@matrix8934
@matrix8934 Ай бұрын
I don’t have much experience with node backends(the only project I’ve worked on used kysely), I haven’t used drizzle nor prisma, but looking at your examples I see why people might want to use prisma and why I already hate it. Drizzle seems to be much more like an actual query builder as opposed to prisma which tries to abstract away everything. Having worked with such solutions in other languages it was always great until the abstractions broke in unexpected ways, like hibernate generating a few hounded joins where two would suffice
@reedlaww
@reedlaww Ай бұрын
I really wanted to like Prisma, but I couldn’t get its rust-powered tooling build/migrate on a remote CI/CD pipeline in conjunction with Turborepo. Drizzle is a happy medium and has the big benefit of just being a JavaScript library.
@hanserlabber4164
@hanserlabber4164 Ай бұрын
What is your exact Problem (I am also using turborepo in my project)
@reedlaww
@reedlaww Ай бұрын
@@hanserlabber4164 The relative pathing to the prisma binaries would break (ex. @packages/db), which I got around with some build-scripts. But the dagger was npm install would install a binary that was incompatible with the target linux env of my build agent. It all worked great locally inside a docker dev container. So if you have the ability to deploy as containers I bet it would work better. I didn't have that option unfortunately.
@pomprocks
@pomprocks 2 ай бұрын
Why learn SQL when you can learn a dozen ORMs instead?
@richardbray
@richardbray 2 ай бұрын
Because there are still things only SQL can do like common table expressions, views and stored functions which are super useful for complex queries kzbin.infojLcbLVaz4ms
@cusematt23
@cusematt23 2 ай бұрын
So true 😂
@alesholman801
@alesholman801 2 ай бұрын
Why use ORMs for autocompletion, type safety, faster development, better development experience, scalebility... When you can use raw SQL 🤡
@0b3ryn29
@0b3ryn29 2 ай бұрын
Just raw dog it bro 😂
@piscopancer
@piscopancer 2 ай бұрын
good trolling
@curiouslycory
@curiouslycory Ай бұрын
I love the t3 stack (create-t3-app ftw!) so of course I tried drizzle when they added it as the preferred ORM for the stack and I felt SO much more friction when using it compared to prisma. I really appreciate your breakdown as it helps me see a few of the benefits that I couldn't quite see from the depths of learning curve hell.
@mac.ignacio
@mac.ignacio Ай бұрын
A good example of Imperative vs Declarative syntax.
@BeBoBE
@BeBoBE Ай бұрын
Wouldn't call Prisma declarative, you're still creating rows and such yourself, it's just a little bit more declarative since you can for example add children directly when creating a row. If you want a declarative ORM you might want to take a look at MikroORM.
@mac.ignacio
@mac.ignacio Ай бұрын
@@BeBoBE I think you dont know what declarative means. In Prisma you just need to declare what you want the row to be created. In Drizzle you are imperatively doing the creation of the row.
@congminhluu5068
@congminhluu5068 Ай бұрын
I'm liking Kysely + Prisma. Although you can argue that it's a lot of overhead
@NewTypeStarling
@NewTypeStarling Ай бұрын
Why, why whyyyyyyyy
@jonnyborgesdev
@jonnyborgesdev Ай бұрын
For God, no!!!! I used to have Kysely + Prisma in my projects, and now I have SO MANY PERFORMANCE PROBLEMS that I could not recommend it to anyone! It is serious, man, stop, just stop, it will kill you. Please, PLEASE, NOOOOO!
@congminhluu5068
@congminhluu5068 Ай бұрын
@@jonnyborgesdevperformance problem how ? With that combo you would ONLY use prisma migrate system with its schema file (so no touching prisma client) and then it's just sql with kysely? How on earth would you run into performance problems with just sql? Did you also use prisma to do things which defeat the purpose of kysely ???
@NewTypeStarling
@NewTypeStarling Ай бұрын
then it is ok@@congminhluu5068
@zivtamary
@zivtamary Ай бұрын
@@jonnyborgesdev Elaborate? I find Kysely + Prisma to be the best combination we've ever used in a project. and the performance increased a lot more than using plain prisma
@Jacek2048
@Jacek2048 Ай бұрын
Finally someone showed what a DX nightmare Drizzle is, especially when it comes to relations. It is a deal breaker to me.
@akash-kumar737
@akash-kumar737 Ай бұрын
What your thoughts on Prisma which struggle with performance and perform unwanted queries for join statements.
@dipteshchoudhuri
@dipteshchoudhuri Ай бұрын
​@@akash-kumar737It does not really matter unless you are working on a very large scale.
@buzz1ebee
@buzz1ebee 2 ай бұрын
Prisma has always been weird. Typeorm has been serving us very well for years. Drizzle is just like a slightly lower level typeorm.
@DrsHWolfenstein
@DrsHWolfenstein 2 ай бұрын
ORM's are a bit too invasive for me. A good Query Builder (Kysely) has the same benefits but stays closer to SQL and doesn't take over your project.
@marcuss.abildskov7175
@marcuss.abildskov7175 23 күн бұрын
These aren't ORMs.
@user-cq4db1fs6z
@user-cq4db1fs6z Ай бұрын
Hi I have an idea 💡 can you create youtube video downloaded using javascript? I hope hear from you
@NathanielBabalola
@NathanielBabalola Ай бұрын
Haven't tried it yet because I heard they truncate tables a lot when running migration
@ryangamv8
@ryangamv8 2 ай бұрын
That Prisma uses it's own weird rust engine and doesn't just do single queries, doesn't allow you to do left, right joins, etc. should be a non starter. Just learn SQL and use Drizzle
@BarisPalabiyik
@BarisPalabiyik 2 ай бұрын
Half of your sentence is outdated if I am not mistaken, give it a look. They sorted many of the stuff you mentioned.
@mumk
@mumk Ай бұрын
I will still be rooting for Prisma
@zoki5388
@zoki5388 2 ай бұрын
Real man write queries 💪 Only thing I like from them is studio.
@KevinOfSteel
@KevinOfSteel Ай бұрын
I use DataGrip
@Methapon2001
@Methapon2001 Ай бұрын
Drizzle also have query like prisma interface like find in prisma isn't it. On query not insert update and delete.
@atxorsatti
@atxorsatti Ай бұрын
- prisma doesnt work on some serverless environments, like supabase, because the underline engine connects to dbs though a tcp connection and deno in edge function doesnt have a tcp engine. - to address that, and i assume similar issues, they have created accelerate, which prisma successfully connects to through https, and its like a cache level for you db from what i understand. - accelerate costs more money, so i dont see it as a selling point, they couldve fixed thr underlying issue -_- Just use drizzle tbh
@SeanCassiere
@SeanCassiere Ай бұрын
As someone who moved over from Prisma to Drizzle, it mostly came down to Prisma's horrible SQL perf and the overall level of "magic" it uses to power its DX. Prisma's "magic" also doesn't play well in production, with serverless environments and mono-repos either, because of how it needs to generate individual underlying Rust engines and generate the typescript types off of that before you even get to the "tsc build" step of your app. I'm not saying that it can't be done, but it is a 'non-zero' amount of time which can feel horrible when applied to a real production codebase. Contrast this with Drizzle where it's all just typescript... that's it. Also, as you start writing bigger apps with beefy databases, and you start running more complex queries on your DBs, I've found that the overhead required to run my queries through Prisma just isn't worth the performance hit that I end up taking. Running a Prisma query has the following overall flow: Send an instruction from the JS-layer to the Rust engine, hopefully the engine generates something close to a performant SQL statement-set, execute the _statements_ in the engine, get the response and parse it in the engine, and finally return the validated response to the JS-layer. With Drizzle, I'm really just running an "SQL statement"... that's it.
@JayDoge
@JayDoge 2 ай бұрын
Orchid ORM has entered the chat
@muhammadfawwad6782
@muhammadfawwad6782 24 күн бұрын
Hey can you help me in my build about prisma getting some errors aint getting what the heck are they.
@michaelhays
@michaelhays 2 ай бұрын
"Just use SQL" is my least favorite take in software development. I don't understand how you can stomach the DX of plain SQL when there is an intuitive, readable, popular, type-safe ORM available (Prisma) that hardly takes any time to learn or understand. Literally just compare the queries! There's not even an argument for me
@boenrobot
@boenrobot Ай бұрын
The syntax for defining tables and relations in Prisma seems like almost equivalent to SQL. If you write SQL first, and have an ORM with code generator for the sake of generating type safe models, you can extract more out of your database's capabilities, while still getting the DX benefits.
@Nickator
@Nickator 2 ай бұрын
Just when you feel like you learned something good enough, something new comes up(not saying it in a bad way but we need the urge to learn constantly in this field)
@MrHellmager
@MrHellmager 2 ай бұрын
You don’t have to learn all the new tech
@waseemtahir6740
@waseemtahir6740 Ай бұрын
OK, so if you are building a portfolio project or just starting out use Prisma, but if you're building for production, then you'll have to use Drizzle. By the looks of it Prisma would be a nightmare while the system scales.
@sourabhsingh4515
@sourabhsingh4515 Ай бұрын
ok can you explain how?
@bbbo85
@bbbo85 Ай бұрын
If 10% more code means I can have control and speed, drizzle all the way for me. I've experienced enough of Prisma's definition mismatch due to delayed codegen to be a loving fan.
@voidmind
@voidmind 2 ай бұрын
I find the migration stuff confusing. If I already have a database and I just want Drizzle to connect to it, do I need that?
@tipeon
@tipeon 2 ай бұрын
You don't. But once you grow your team to more than one person, or you deploy several iterations of your application, then you'll see the value of migrations. It's OK to start small, learn the essentials, feel the pain, and then add more sophisticated tools to your toolbelt.
@tom.watkins
@tom.watkins Ай бұрын
Drizzle kit can introspect an existing database to create a schema I believe
@salmanpatrick
@salmanpatrick 2 ай бұрын
While prisma can work with all kinda dbs, seems like drizzle was specifically made for relationsal databases. As it's syntax is pretty similar to the sql. Well, imo until you need more control over your queries whic you won't need that often, prisma is fine. Prisma is good enough to handle everything, easy to use and pretty straight forward. Btw these js ORMs are not anywhere close to the C#'s EFCore.
@ProtectedClassTest
@ProtectedClassTest Ай бұрын
Sad that C# is unloved, js is so far behind in terms of framework and libraries
@hanserlabber4164
@hanserlabber4164 Ай бұрын
Hi Guys, One problem in my eyes is the TypeScript support. Prisma's TypeScript support is at version 4.7.0 but my project is running version 5.3.3. Prisma has a better DX for me than Drizzle when it comes to complex queries, and I have really complex queries in my project. I don't want to write raw SQL, and the limitations of Prisma are completely okay for my queries. However, if I cannot fix the TypeScript problem, I cannot use it due to missing type safety. Am I the only one who is struggling with this? It would be nice if you could give me some advice. @web
@hanserlabber4164
@hanserlabber4164 Ай бұрын
Oh I think the Problem IS only in 5.3 or so ... Because 4.7.x should be the Minimum requirement. Some one Test IT with some 5.x Version?
@alptekinocakdan
@alptekinocakdan 2 ай бұрын
Let's say I have a full-fledged, complex E-commerce Backend and Frontend. With the whole management scenario, this backend allows to manage multiple stores and allows to add new ones. Which ORM would be better for this? If I learn it now, I want to understand if it will benefit me in the 1-2 month project I want to start.
@elmalleable
@elmalleable Ай бұрын
You can flip a coin or make a cost benefit table. Prisma is convinient, hit the ground running and dx is great save for ts types if you need that. Drizzle will give you types But can get in your way for minor times when you have type mismatch or if you are using validations. Either works. Pick your poison. Want to eat noodles with a fork or chopsticks?
@alephzero7808
@alephzero7808 Ай бұрын
As a front end developer I have never heard of any of this
@faiyazrasul2050
@faiyazrasul2050 Ай бұрын
When will you stop your mewing streak?
@horacioserrano5430
@horacioserrano5430 3 күн бұрын
As of a few days ago, Drizzle no longer works with NextJs...
@radimhof
@radimhof Ай бұрын
I use Kysely. It's the best. And prisma for schema and migrations.
@BSTGMR-kj3tu
@BSTGMR-kj3tu 2 ай бұрын
Lets goooooooooo
@0xtz_
@0xtz_ 2 ай бұрын
we all need to drizzle 💧
@peteregbujie
@peteregbujie 2 ай бұрын
Drizzle is the way to go. If you are not comfortable with the SQL like syntax, you can use the query.
@tom.watkins
@tom.watkins Ай бұрын
Prisma provides you with a nice DX but that's where the positives end for me, their weird rust engine is so bad for performance when working with any reasonable amount of data. That and the fact is ships with a big binary is problem. I also much prefer writing my schema in typescript than prismas own schema language, the fact its marginally more verbose is a small price to pay for the flexibility it gives you
@KevinVandyTech
@KevinVandyTech 2 ай бұрын
yes it is
@eighties8
@eighties8 Ай бұрын
I’m a visual learner do you know of any VS code extensions that will allow me to visualize program flow of typescript either on desktop or in VR quest three? I work in Angular so typescript.
@Kayotesden
@Kayotesden 2 ай бұрын
But Kyle... we have Kysely...
@DarkzarichV2
@DarkzarichV2 Ай бұрын
Kysely is great for a smaller project if you want to just focus on the queries that get data with a simple type-safe query builder, without much overhead and stuff. If you have a complicated db with a lot of relationships between entities and need ORM features like easy migrations, better and stronger type-safety - DrizzleORM is definitely the choice
@DrsHWolfenstein
@DrsHWolfenstein Ай бұрын
@@DarkzarichV2 In my experience ORM's are great for very simple crud style queries and fail on the more complex joins. This is especially bad if you rely on typed query responses as switching to raw queries requires manually typing the response.
@OnFireByte
@OnFireByte Ай бұрын
10:35 didn’t drizzle let you do multiple insert? It’s way better than calling insert multiple times
@WebDevSimplified
@WebDevSimplified Ай бұрын
Yes. You can do multiple inserts in one statement. That would be better, but this repo was purely a demo that I was using to learn/compare Drizzle to Prisma so this was pretty quick and dirty.
@OnFireByte
@OnFireByte Ай бұрын
@@WebDevSimplified fair enough, great content!
@mokshchadha9151
@mokshchadha9151 2 ай бұрын
which is better prisma or drizzle me still using sequalize
@mrika1995
@mrika1995 2 ай бұрын
HI, can i ask you one question? (if u do this stuff) How you manage filter paramas in a GET request? how you work with operators? like in prisma you can simply use NOT:{id:3} , {age:{lte:18}}, ecc. In sequelize you have like Op.gt, Op.in ecc.. But you can't use them from the client or im wrong? When request is static and with same filters its ok, but like my clients have a feature like visual query builder, and always be boring with other orms to manage the request params Thanks
@mokshchadha9151
@mokshchadha9151 Ай бұрын
@@mrika1995 i have a mapping for my request params and my table columns for example i use something like route/?gender=not_male and in the code handle the validation of query separately
@mrika1995
@mrika1995 Ай бұрын
@@mokshchadha9151 Can you make me an esemple with more complex/nested object filter? how the server understand not_ or_ gte_ ecc? like if includes("_")? Thanks
@chinmayghule8272
@chinmayghule8272 2 ай бұрын
Bro if you're reading this comment, can you please make a video on how to use state management libraries like Redux and Zustand in Next.js 14? The tutorials I found were based on Next.js 13 and didn't help me understand much. The concept of having a per-request store is really confusing. I don't really understand why you'd need to do such a thing. Also server-side rendering makes it even more difficult to understand.
@MerkieAE
@MerkieAE 2 ай бұрын
Jotai has next 14 support. For the others, just keep the usage of them in client components and you should be good. Hopefully he makes a video soon
@chinmayghule8272
@chinmayghule8272 Ай бұрын
@@MerkieAEEven if we only try to use them in client components the problem is that you can't create a global store. This means that your stores can only be per-request, meaning per-route. But I don't understand why would we need to do that.
@danieldanish2453
@danieldanish2453 Ай бұрын
does prisma supprot uuid in postgres ? can u do an exemple
@jonnyborgesdev
@jonnyborgesdev Ай бұрын
1: Yes it supports it, just add @default(uuid()) but you SHOULDN'T. There is no single good reason for you to use uuid in 2024, Prisma supports cuid too (which is better than uuid in literally everything). I use Snowflake, and I have prism.$extends to add support for it, because Snowflake is better for larger systems, but cuid is good enough for all types of systems, and uuid or autoincrement are not good for anything.
@ravi_sorathiya
@ravi_sorathiya Ай бұрын
Just imagine how cool is laravel Really is way ahead of time😊
@SuperYoda7
@SuperYoda7 Ай бұрын
I like the ease of use and simplicity of Prisma.
@user-yj4uz8rk1k
@user-yj4uz8rk1k Ай бұрын
@sarmadrafique426
@sarmadrafique426 2 ай бұрын
Next js Drizzle basic project
@horacioserrano5430
@horacioserrano5430 3 күн бұрын
Not using non standard languages is a HUGE drizzle pluss.
@donmorris4506
@donmorris4506 Ай бұрын
Sticking to sequelize for sql databases. It’s all I need.
@CeezGeez
@CeezGeez 2 ай бұрын
yeah... but have you used drizzma?
@idmt93
@idmt93 2 ай бұрын
I prefer prizzle
@ruslansergazin8239
@ruslansergazin8239 2 ай бұрын
I dont understand why devs of prisma or drizzle dont want to implement DSL in migrations. Native sql in migrations is such kringzh. So, I think that sequelize and typeorm are much better.
@spectr__
@spectr__ Ай бұрын
Honestly, what is the use of any of these, over just writing queries? Tried Prisma once and it was just super slow and bureaucratic, only delaying the project.
@yohanneskindu8794
@yohanneskindu8794 Ай бұрын
These simplify most of the queries you write, which enable you to work on projects faster without much of performance tradeoffs, for complex and performance requiring functionalities, using SQL queries might be the way to go.
@jonnyborgesdev
@jonnyborgesdev Ай бұрын
Safety??????
@spectr__
@spectr__ Ай бұрын
@@jonnyborgesdev safety in what sense?
@riteshregmi5594
@riteshregmi5594 2 ай бұрын
Drizzle is awesome
@MrCowch
@MrCowch Ай бұрын
I like this just waiting for sql server to be implemented then I can drop prisma lol
@mrkostya008
@mrkostya008 Ай бұрын
Frontend devs will do EVERYTHING to not touch squeel
@WendiCahyono-yf7xc
@WendiCahyono-yf7xc 29 күн бұрын
drizzle is just like sql wrapped in typescript
@andyslack1167
@andyslack1167 Ай бұрын
TypeORM ++
@johanexxxx
@johanexxxx Ай бұрын
For drizzle my nizzle.
@thomasfuchsberger3912
@thomasfuchsberger3912 2 ай бұрын
I love TypeORM!
@thomas-sinkala
@thomas-sinkala 23 күн бұрын
Drizzle, Drizzle
@thedelanyo
@thedelanyo Ай бұрын
Drizzle is fairly easy to setup
@randomfellow1483
@randomfellow1483 Ай бұрын
Do you think it’s still worth to learn to code with Devin coming in?
@WebDevSimplified
@WebDevSimplified Ай бұрын
I answer this exact question in the video coming out later today.
@mistart1633
@mistart1633 Ай бұрын
Really prisma schema is better?, tell me how can u create functional index, generated columns, index part of column, index hash in prisma. Man prisma is for hobby projects
@emilv8954
@emilv8954 Ай бұрын
There's a really great ORM that sits somewhere between drizzle (query builder) and Prisma (high-level data management) - it's called objection.js. It nails down the ORM part, it deals well with relations, it's bullet proof. The only thing it lacks is the nice Typescript support (many things are just strings).
@stupidgameprizes
@stupidgameprizes Ай бұрын
Creator of Objection.js has left the project. He started Kysely to replace Objection.js.
@thesilentkiller3882
@thesilentkiller3882 Ай бұрын
Prisma is more beginner friendly but drizzle is much better in the long run.
@mang_tomas
@mang_tomas 7 күн бұрын
so basically all orm will become laravel orm
@geebsayshi
@geebsayshi 2 ай бұрын
Prisma >>>>>
@neutralitat2570
@neutralitat2570 2 ай бұрын
drizzle === hype
@sajalhsn13
@sajalhsn13 Ай бұрын
What is the point of a ORM? Isn't SQL itself beautiful?
@jonnyborgesdev
@jonnyborgesdev Ай бұрын
Safety????
@rebarius
@rebarius 2 ай бұрын
Is Drizzle supporting Mongo? Is it supporting CSFLE connection? If not, it‘s for the bin for me 😅. Security and NoSQL are the most important topics for me!
@binamralamsal
@binamralamsal 2 ай бұрын
Unfortunately, Drizzle doesn't support MongoDB.
@shakapaker
@shakapaker 2 ай бұрын
@@binamralamsal that's a bummer
@shakapaker
@shakapaker 2 ай бұрын
@@binamralamsal but is there any orm that supports both relational and mongo?
@marc-hess
@marc-hess 2 ай бұрын
@@shakapaker Prisma :D
@shakapaker
@shakapaker 2 ай бұрын
@@marc-hess lmao
@waleedsharif618
@waleedsharif618 2 ай бұрын
Does it support MongoDB ?
@DerberAlter
@DerberAlter 2 ай бұрын
the simpler, the better. prisma wins in about 90%+ of cases
@spectr__
@spectr__ Ай бұрын
Man, if prisma is simpler and better, I dont wanna get near drizzle.
@TheKaosTux
@TheKaosTux 14 күн бұрын
I don’t see any reason to use prisma or drizzle.. both would make work with the database more komplex for no reason. Prisma has just one big schema file?! Why?! Imagine building a GraphQL backend and being in need to create a DB schema, a graphql schema and types for that and have to sync all that stuff manually, because your ORM wants to keep everything in a big schema file… Imagine just using typeORM with type-graphQL and use just one file per model to get all in one place with much smaller code footprint for relations and so on… I don’t get why ppl go for more complex solutions just because of more complexity.
@chambaderaphael8946
@chambaderaphael8946 Ай бұрын
Prisma for simple query ease + kysely for more complex queries, all with a single source of truth, the beautiful Prisma schema 🎉
@jonnyborgesdev
@jonnyborgesdev Ай бұрын
NO, NO!!! FOR GOD, NO!!!! Damn, it is SO BAD TO PERFORMANCE! It is like, 36x slower than use kysely + pg
@KevinOfSteel
@KevinOfSteel Ай бұрын
I believe unless you know exactly what you are doing, don’t use an ORM. And if you know what you are doing there is no point in using an ORM.
@jonnyborgesdev
@jonnyborgesdev Ай бұрын
Are you living in 2010? I think so.
@user-ml1bl4gv6j
@user-ml1bl4gv6j 2 ай бұрын
i just learnt prisma , dont give me a other headache
@saywaify
@saywaify 2 ай бұрын
Keep using it. It' fine. Plus I think they are fixing the major concerns developers have with it
@arthurmorgan332
@arthurmorgan332 2 ай бұрын
Jizzle
@Adityacode
@Adityacode Ай бұрын
I would rather use postgres js as my orm and make chat gpt type out ts types for my schema.
@clintkennedy8387
@clintkennedy8387 Ай бұрын
You should post a youtube video of how you do that!
@fueledbycoffee583
@fueledbycoffee583 Ай бұрын
Thank you. i will just keep raw dogging SQL
@MamadouNDalabaDiallo
@MamadouNDalabaDiallo 2 ай бұрын
TypeORM is the best.
@RasmusSchultz
@RasmusSchultz Ай бұрын
If you don't know SQL, learn that before choosing an ORM. Once you know SQL, you don't need an ORM. 🤫
@hunter2473
@hunter2473 2 ай бұрын
dude you have a goated hairline
@h.5544
@h.5544 2 ай бұрын
Honestly i don't really get the hype behind drizzle. I wanted to try it for fun but switched back to prisma once i saw how bad its types were.
What Is Email Only Authentication - Magic Link Auth
12:00
Web Dev Simplified
Рет қаралды 61 М.
Learn Drizzle In 60 Minutes
56:09
Web Dev Simplified
Рет қаралды 32 М.
Migration Lesson: Don't Use Prisma | Prime Reacts
29:16
ThePrimeTime
Рет қаралды 141 М.
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 376 М.
I DONT USE NEXT JS
54:01
ThePrimeTime
Рет қаралды 305 М.
GraphQL, tRPC, REST and more - Pick Your Poison
17:12
Theo - t3․gg
Рет қаралды 106 М.
DONT USE AN ORM | Prime Reacts
25:46
ThePrimeTime
Рет қаралды 191 М.
Drizzle ORM in 100 Seconds
2:54
Fireship
Рет қаралды 427 М.
How This Test Saved Kent’s Site
7:04
Web Dev Simplified
Рет қаралды 27 М.
This Trick Makes My Favorite Database Tool Even Better
6:01
Josh tried coding
Рет қаралды 23 М.
How To Actually Get Hired In 2024
10:43
Web Dev Simplified
Рет қаралды 185 М.