lsBlog
Technical notes. What I've learned by building.
Categories
Filter by tag
- 2026-04-04engineering4 min read
Prisma + multi-tenancy: one database, many tenants, no chaos.
The reflex when your first big customer asks for a dedicated database is to say yes. That reflex scales until it kills you.
- 2026-03-14engineering2 min read
100 items, 101 queries: the N+1 pattern and how to kill it.
N+1 shows up every time you put an `await` inside a `for`. How to spot it in your logs and swap it for a single query.