Skip to content

November 2026 · PostgreSQL · Prisma · Node.js · NestJS

Notes on PostgreSQL and Prisma from a MySQL Developer

Most of my production work is MySQL with Laravel. These are honest notes from working with PostgreSQL and Prisma, including where my experience is still growing.

Notes on PostgreSQL and Prisma from a MySQL Developer

Where I am coming from

I should be upfront: MySQL with Eloquent is where I have the most hours. PostgreSQL and Prisma are tools I understand and have used, mostly alongside Node.js and NestJS, and I am still learning their finer points. This is what stands out so far to someone with that background.

What PostgreSQL gives you

It takes data rules seriously. Check constraints, partial indexes and rich types let the database itself refuse bad data, instead of trusting every part of the application to behave. JSONB is useful when a field really does vary between records, such as custom fields that differ by school. Used carefully it is a good escape hatch. Used everywhere, it is just a messy table you can no longer reason about.

What Prisma does well

With TypeScript, Prisma feels very natural. The schema file becomes a readable description of your whole data model, queries are typed, and renaming a column breaks the build instead of a customer’s page. Migrations live in Git beside the code, so anyone on the team can see how the database changed and why.

Where it pushes back

Prisma is an abstraction, and it does not always write the query you would have written yourself. For a heavy report I would look at what it generates, and sometimes drop to raw SQL. It also makes it very easy to load too much, so careful selects matter just as they do with Eloquent. Multi-tenant work needs thought too, because a forgotten tenant filter is one line away.

How I would choose

For a Laravel project with an existing MySQL database, I would not move just because something is newer. For a new NestJS or Next.js product, I would happily start with PostgreSQL and Prisma. For a multi-tenant SaaS, PostgreSQL row level security is worth a serious look. The honest answer is that a well-designed schema matters far more than which of these you pick.

Md. Fawjul Azim

Focusing on building high-performance web applications with modern tech stacks.