News for hackers. Stuff that matters.
Re:How I Reduced My DB Server Load by 80% by mehorms on Monday October 09, 2017 @04:00PM (#15436969)
While I agree with this, the quality of ORMs vastly differs. For instance, the ORM style that wraps sql in a dsl is strictly better than one that encourages model lifecycle callback hell, as activerecord does. The latter is never necessary to work with a database and is a terrible pattern long-term for composing database interactions: it is extremely difficult to reason about what will actually happen inside the transaction (or immediately after).

Tl;dr you aren’t wrong, but many home-rolled ORMs are simpler and much easier to use than, say, activerecord.

Re:How I Reduced My DB Server Load by 80% by kpil on Monday October 09, 2017 @05:33PM (#15437662)
I think that QueryDSL on top of JPA on Scala is just about as good as it gets.

It is also complex and requires that you really master all the ingredients... If SQL is a mystery to you, it will just be a painful experience.