
select_related vs prefetch_related: Practical Django Examples
select_related() and prefetch_related() both fix the N+1 problem, but they work differently. Here's...
Tag archive

select_related() and prefetch_related() both fix the N+1 problem, but they work differently. Here's...
A small ceramics shop renamed one column. The orders table had a column called customer, and someone...
A simple guide to ORM tools and Hibernate: the problem ORMs solve, pros and cons, Hibernate with and without Maven (PostgreSQL), common methods, Hibernate vs Jakarta Persistence, and a step-by-step Spring Framework example.

You've probably lived one of these: A migration that looked harmless took an exclusive lock on a...

Django's QuerySet is "lazy" and "chainable" and everyone repeats those words. Let's build a working one in about 50 lines and watch the magic disappear.
In ORM Negative reviews should be handled calmly and professionally. Businesses should understand the...

The N+1 problem. How a harmless-looking loop quietly fires one database query per row, and the two methods that collapse it back to one.

Every now and then someone asks me: "Delphi? Is that still a thing?" It is. It runs in business...

One question tells you which to use every single time, and it's not "which method do I remember?"
Why we transitioned our SaaS backend from Prisma to Drizzle ORM: eliminating Rust engine overhead, unlocking sub-millisecond query latencies, and native TypeScript inference.
As backend developers, we've all been there: staring at logs at 2 AM, trying to understand why a...

Q objects, F objects, annotate, and aggregate. The four tools that let you stop dropping to raw SQL, and the one distinction everyone gets wrong.