Real systems, real code, broken down.

Deep-dive developer posts on scaling, system design, OS internals, AI, and the edge cases that break production — every post ships with real, working code.

Start reading →
SELECT * FROM orders
ORDER BY created_at DESC
LIMIT 50 OFFSET 250000;

from: OFFSET 1000000: Why Your Pagination Falls Over at Page 10,000

View all →
Scaling · Nov 1, 2026 · 8 min

The N+1 Query: How Your ORM Turns 1 Request Into 201

The order list page loads fine with 5 orders in dev and falls over with 10,000 in production. Here's the ORM lazy-loading trap that causes it, how to see it in the query log, and the two real fixes: eager loading and batching.

Scaling cover

Explore Topics

ScalingSystem DesignOS InternalsEdge CasesReviewsAI