TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Who writes plain SQL in production?

5 pointsby htunnicliffabout 1 year ago
Does anyone write “plain” SQL queries in production web apps, as opposed to using an ORM? I ask because I’ve only ever worked at companies using ORMs, but feel like there is a lot of simplicity in being able to write SQL directly.

7 comments

arcbyteabout 1 year ago
The only people I encounter using ORMs are junior devs or folks who who keep moving project to project before they get a chance to support something in production. The first time you get an issue and go "wtf" at an ORM you switch real fast.
johnny99kabout 1 year ago
Every ORM I&#x27;ve encountered always has issues when you want to write custom SQL outside of the ORM. It turns into a real mess real fast.<p>Our production code is mostly stored procedures called by code.
brookritzabout 1 year ago
I always do. In a recent project with just me and another developer they added a senior&#x2F;lead&#x2F;architect who took over and ordered to rewrite using &quot;enterprise&quot; stuff including ORM. I left. Now they have more developers and code that is about shoveling data back and forth to and between layers, beans, controllers, services, adapters ...
ttymckabout 1 year ago
Isn&#x27;t the ORM the mapper from rows to objects? Every ORM I&#x27;ve used has support for &quot;plain sql&quot;, in addition to a query builder&#x2F;dsl.<p>How are you deserializing query results and serializing inputs?<p>For context: I work on web apps
strayabout 1 year ago
Yes. I rarely use an ORM.
gregjorabout 1 year ago
yes, at several jobs. never use an ORM if i can help it.
jeffogbu25about 1 year ago
I rarely use ORM