3 ms·
This is a well known issue [1], and isn't due to ORMs being poorly written. It's not true that people who know SQL always prefer using it to using an ORM. In o
by greenleafjacob 10y ago
This is a well known issue [1], and isn't due to ORMs being poorly written.
It's not true that people who know SQL always prefer using it to using an ORM. In one of my prior jobs we had strict controls on the queries that ran in production for performance reasons. We screened all of the query plans the planner generated, but we also used an ORM. Sometimes we needed to work around or even reimplement the queries that used to be in SQL due to niche features like index hinting or the HAVING clause. And yet usually we used the ORM because it was more concise and reduced manual mapping of columns to fields.
[1]: https://en.wikipedia.org/wiki/Object-relational_impedance_mismatch https://en.wikipedia.org/wiki/Object-relational_impedance_mi...