Skip to main content
Architecture

Why I Use Raw SQL Instead of an ORM (Most of the Time)

January 18, 202610 min read
SQLPostgreSQLORMPrismaDatabasePerformance
Share:

This is going to be controversial, so let me start with the disclaimer: ORMs are fine. Prisma, SQLAlchemy, Drizzle — they're all good tools built by smart people. I use them.

But for the Nexural platform — 185 tables, complex joins, materialized views, row-level security — raw SQL was the right call for the critical paths. Here's why.

The Moment I Switched

I was using Prisma. The dashboard loaded in 200ms locally. In production with real data, it took 4.2 seconds.

I ran \\

Related reading

All posts →
Jason Teixeira
Written by
Jason Teixeira
Founder, Sage Ideas Studio
More about Jason →

Want to see this in action?

Check out the projects and case studies behind these articles.

livebuild 29be8ec2026-06-11 06:38Z
// solo studio// no analytics resold// every commit human-reviewed