— Writing —

All writing

Database · Query Optimization · 5 articles
DatabaseQuery Optimization·18 min read

"Push It All on the Database" — The Lie That Works Until It Doesn't

Every team ships with the same lie: throw everything on the database and it'll handle correctness. Works at 50 writes/sec. At 5,000 writes/sec, every FK is a lock queue, every cascade synchronously deletes thousands, fsync becomes the clock. Why staging never catches it, ten places where the bill shows up, the cost curve of a hot FK, why cascades are dangerous, how to diagnose your bottleneck, and the enforcer+checker pattern senior teams use to move constraints off the database without losing correctness.

DatabasePerformanceMySQLPostgreSQLRead →
Writing — realproblem.me