SQL and data correctness problems are rarely only about one query. Slow plans, missing indexes, ORM query explosions, connection pool pressure, stale caches, replica lag, transaction boundaries, isolation levels, locks, schema changes, migration testing, migration rollback, and worker concurrency all affect whether the system stays fast and correct under production traffic.
This hub collects CodeNotes articles for the database problems that tend to cross boundaries: diagnosing slow queries, understanding why scaling did not help, choosing transaction boundaries and concurrency controls, sizing connection pools, fixing ORM access patterns, designing cache freshness boundaries, coordinating database-backed jobs and events, testing migrations before production, and rolling out or rolling back data changes without breaking live requests.