News for hackers. Stuff that matters.
Re:The Troublesome Active Record Pattern by LargeWu on Thursday March 19, 2020 @09:49AM (#22627448)
That's fine. For 95% of the queries you need, ActiveRecord-ish implementations are perfectly performant, and super readable. For the rest, they allow you to drop down to the SQL layer and specify exactly what you want or need.
Re:The Troublesome Active Record Pattern by smoe on Thursday March 19, 2020 @05:25PM (#22631917)
Yes, that is what we do and what I like about SQLAlchemy for Python. We use the ORM for like 90% of cases and drop down to its SQL abstraction underneath the ORM.

The last time I used Django a couple of years ago that was one of the bigger pains for me: It was either the Django ORM capabilities or raw SQL, not much in between. Or maybe I was just unaware of how to do it better.