| ▲ | StarGrit 2 days ago | |
You always get a comment like this. I don't particularly agree. There are pros and cons to either approach The tooling in a lot of languages and frameworks expects you to use an ORM, so a lot of the time you will have to put up a fair bit of upfront effort to just use Raw SQL (especially in .NET land). On top of that ORM makes a lot of things that are super tedious like mapping to models extremely easy. The performance gains of writing SQL is very minor if the ORM is good. | ||