Pagination and Sorting APIs That Actually Scale
Why offset pagination falls apart under real data volume, and how to design keyset-based pagination and sorting APIs that stay fast at scale.
Tag
15 articles
Why offset pagination falls apart under real data volume, and how to design keyset-based pagination and sorting APIs that stay fast at scale.
When a database is suddenly slow, the order you check things in matters — a triage sequence that finds the real cause before you start guessing.
Why deadlocks happen even in well-designed schemas, how to read a deadlock log, and the lock-ordering habits that prevent them.
How common table expressions clean up nested subqueries, and how recursive CTEs turn hierarchical data into a solvable SQL problem.
An introduction to window functions — running totals, rankings, and moving averages — for anyone still reaching for self-joins and subqueries.
A practical framework for deciding when an ORM query is fine and when it's time to drop down to raw SQL, with real examples of each.
Why the N+1 query problem keeps reappearing across every ORM, how to spot it before production does, and the fixes that actually hold up.
Techniques for adding columns, changing types, and backfilling data on a live table without locking it or breaking the app mid-deploy.
How to use your database's built-in full-text search before reaching for a separate search cluster, and where it stops being enough.
A practical look at JSON and JSONB columns: when they replace a schema migration, when they hide a design problem, and how to index them.
When strict normalization protects you, when it just adds joins, and how to denormalize deliberately instead of by accident.
A comparison of range, list, and hash partitioning strategies, when each one earns its operational complexity, and when it's premature.
A tour of READ UNCOMMITTED through SERIALIZABLE, the dirty reads and phantom rows each level permits, and how to pick one without guessing.
A field guide to reading EXPLAIN output, spotting sequential scans that shouldn't be there, and turning a query plan into an actual fix.
A practical walkthrough of B-tree index internals, why they dominate relational databases, and how their structure shapes real query performance.