DEV Community

Discussion on: Why we should always use ORM?

Collapse
 
honatas profile image
Jonatas de Moraes Junior

In general, the main drawbacks to me are:

  • You have to learn SQL anyway;
  • You lose raw SQL power (no unions, no subqueries in from clause);
  • You are forced to model your tables according to the ORM's mapping limitations;
  • You lose performance.

I only use an ORM when all of these are acceptable. Here are my two cents: dev.to/honatas/is-hibernate-really...

Collapse
 
anubhavitis profile image
Anubhav Singhal

Bro, your article is good. I love your writing style.

And yes, I agree with you. I just meant, in most of the use cases these points are acceptable.