Re:Ask HN: Is it reasonable to choose direct SQL over an ORM
by cimmanom on Saturday March 23, 2019 @08:29AM
(#19470163)
Depends a lot on context.
A simple CRUD query with a filter or two and a couple joins, in a large project maintained by a large team, is going to be more maintainable in an ORM.
But many ORMs will be awkward for writing queries used for complex reporting - if they can be written using the ORM at all.
And if you’re working on a project that only you will touch, just use whatever you’re most comfortable with.
A simple CRUD query with a filter or two and a couple joins, in a large project maintained by a large team, is going to be more maintainable in an ORM.
But many ORMs will be awkward for writing queries used for complex reporting - if they can be written using the ORM at all.
And if you’re working on a project that only you will touch, just use whatever you’re most comfortable with.