ORM's vs raw SQL queries and when to use what?

preview_player
Показать описание
In "ORM's vs raw SQL queries and when to use what?" I answer a programming question.

Рекомендации по теме
Комментарии
Автор

Lots of ORMs provide an API for writing raw queries as well which which allows you to combine both of best worlds. Danger that I see for new developers is that they might jump into ORMs too quickly and miss fundamental concepts like transactions for example

mikaknuuttila
Автор

Spent several hours looking into this topic today and then this vid shows up. Thanks for the insight!

GarmrZero
Автор

I have used Entity Framework extensively, and yes, there is a gain in to be made in terms of development time. However, these frameworks do not age very well. After a few years, incompatibilities start to appear if you don't run the latest and greatest of eveything coming with it. There are a lot of older version of databases running out there that eventually become incompatible with the latest version of the ORM. So just one thing to keep in mind.

lematindesmagiciens
Автор

I must confess I use raw quesries even for the most miniscule tasks. I am orm averse, I have a small utility class to process my raw queries easily.

kevinkkirimii
Автор

Great video Fred, the reason why I choose to use JOOQ over Hibernate in Java, you just cannot do joins efficiently in ORMs...

StyleTrick
Автор

Hey man you make a video regarding Internships(school) and how to get a part time software developer as a student.

jossyollarupuram
Автор

Yeah but I still way prefer raw SQL for everything. No magic. I know exactly what it's doing. It's faster. If I switch databases I can just copy paste the raw SQL and tweak it slightly for the new syntax to get it working again. New devs on the team don't need to learn a new ORM if they know SQL (which they SHOULD). I will never have to deal with debugging a stupid ORM that's just acting as the middleman between what I actually want to do.

You can also use the fastest drivers for your specific database and if you need to swap it out for C/C++ and make bindings for it if you really have a need for speed.

austecon
Автор

ORMs are so much quicker for one reason. Todays apps are fast dev cycles. No one has time for good stored procedures. What ends up happening is terrible stored procedures and or messy db layouts because of it. ORMS require less time to make very good SQL when you know how to use them correctly.

richie
Автор

Why in the bathtub? And why always your videos is in a senario walking?

rafaelaffonso