Pagination That Scales: Offset vs Cursor vs Keyset
Trade-offs, pitfalls, and production-ready code with SQL, Node, FastAPI, MongoDB and Elasticsearch examples.
Tiny explainers grouped by topic. Spend less time Googling, more time building.
Trade-offs, pitfalls, and production-ready code with SQL, Node, FastAPI, MongoDB and Elasticsearch examples.
UTC vs local time, offsets vs zones, DST edge cases, ISO 8601/RFC 3339, DB column types, and sane patterns in JS/Python/SQL. How to store, compare, schedule, and display time without pain.
Change schemas safely with backward‑compatible steps, dual writes, background backfills, and rolling deploys. Postgres‑flavored, but patterns apply to MySQL and friends.
A practical mental model for indexes, with copy‑paste patterns for B‑tree, composite order, covering, partial, and expression indexes—plus when **not** to index.
A fundamental database performance problem: why N+1 happens, how to spot it, and fixes with eager loading/batching in popular ORMs (Django, Rails, Prisma/Sequelize, SQLAlchemy).
A high-level comparison of relational and non-relational databases with common use cases for each.