Re:What ORMs Have Taught Me: Just Learn SQL (2014)
by yxhuvud on Wednesday October 21, 2020 @04:18AM
(#24845800)
There are built-in solutions but also quite severe limitations when you get to advanced usage of activerecord. Especially with regards to composability. Of course, raw SQL is also really bad in that scenario.
Re:What ORMs Have Taught Me: Just Learn SQL (2014)
by tylerhou on Wednesday October 21, 2020 @05:36AM
(#24846164)
When I found ActiveRecord insufficient, I found it easy to drop down to Arel for complex queries: https://www.rubydoc.info/gems/arel
Most of the issues I see is a lack of understanding of things like N+1 queries. I see this mistakes from junior to senior level. ActiveRecord has built in solutions to fix them too. Some developers don't know about them.