Earlier quoted context omitted.
I think the point they were trying to make is for using ORM for everything until you need a query complex enough or performant enough to drop back to a raw SQL layer. That's the pattern I've seen the most with ORM setups these days. That or dropping performance heavy sql into stored procedures but in the end it's all a matrix of ease of use/maintainability in some scenarios vs full control and performance tuning and…
Then please forgive I was triggered on their introductory expression "Raw SQL is great for simple queries, (...)" I understand your point but I'm not sure it's efficiency to use an ORM that abstract the easy stuff away from the programmer but rely on expert level knowledge to solve what remain. Because at this point the developer that build everything with an ORM will either: - Face complexs SQL query that he'll have…
I think they might have had a second point in there that they removed but accidentally left part in. This part of the first sentence:
> Raw SQL is great for simple queries, but gets old quick
Sounds like it belongs on a point about boilerplate around sending queries and reading results, that ORMs do for you.