3 ms·
I guess I'm just not sure exactly what, save for trivial queries the ORM is actually good at abstracting? We can all write simple queries with simple joins (I
by iamleppert 10y ago
I guess I'm just not sure exactly what, save for trivial queries the ORM is actually good at abstracting?
We can all write simple queries with simple joins (I hope), that doesn't really save much time. In my experience anything more than a trivial model with a boiler-plate relation it becomes not worth it...
- wvenable 10y agoORMs are good for manipulating complex object models and doing mostly trivial queries. However, the vast majority of queries are trivial. Maybe 2-5% of queries or bulk modifications can't be easily modeled. The result is still huge savings in time, effort, and code. Also, if you're basing your entire understanding of ORMs on ActiveRecord, you're missing out on a lot.