Database guides
Queries, indexes, transactions and data modelling.
45 guides · Newest first · Updated
- DuckDB 2.0 Explained: How to Upgrade Without Breaking Your Data FilesThe new storage format that older versions cannot read, the query and Python changes that break, and a safe upgrade order.Backend · 22 min read ·
- Laravel's October 2026 Token Guard Bypass Explained: Validate Input TypesHow a non-string api_token slipped past the login check and matched a real user on MySQL, shown on one API export feature.Backend · 15 min read ·
- psqlODBC's October 2026 CVE Explained: When Huge IN Lists Corrupt the HeapHow a 16-bit parameter count wrapped, what 18.00.0005 changed, how to check and upgrade.Backend · 21 min read ·
- Design a Key-Value Store: A Dynamo-Style GuidePartitioning, copies, quorums, conflicts and repair.System design · 26 min read ·
- Sharding Strategies: Range, Hash, Directory and Hot KeysA plain-English guide to range, hash and directory sharding, choosing a shard key and fixing hot keys, built on one running example of a music streaming app.System design · 28 min read ·
- System Design Interview Framework: A Repeatable 45-Minute PlanA 45-minute plan from requirements to trade-offs, shown on one running mock interview for a shipment tracking service.Career and interviews · 22 min read ·
- Database Replication: Primary-Backup, Multi-Primary and QuorumsA plain-English guide to database replication, from primary-backup and failover to multi-primary and quorums, built on one running payments ledger example.System design · 26 min read ·
- How Bigtable and HBase Work: LSM Trees and TabletsA plain-English guide to how Bigtable and HBase store data with LSM trees, compaction and tablets, built on one running air-quality sensor example.System design · 26 min read ·
- How Amazon DynamoDB Works: Partitions, Capacity and DurabilityHow partitions, request routers, adaptive capacity and three-way copies work.System design · 25 min read ·
- How Google Spanner Works: TrueTime and Global ConsistencyA plain-English guide to how Google Spanner uses TrueTime, atomic clocks, commit wait and Paxos to give one global order to transactions, shown on one running example of a remittance ledger.System design · 24 min read ·
- Keeping a RAG Index Fresh: Updates, Deletes and Re-indexingA plain-English guide to keeping a RAG index fresh through updates, deletes and full re-indexing, shown on one running example of a hospital HR policy assistant.AI and GenAI · 25 min read ·
- Sharded Counters: Counting Likes at ScaleA plain-English guide to sharded counters, which split one hot like count into many small counters, built on one running example of a short-video app.System design · 25 min read ·
- Common System Design Interview Mistakes and How to Fix ThemA plain-English guide to the mistakes that sink strong candidates in system design interviews, and how to fix each one, shown on one running mock interview for a concert ticket booking system.Career and interviews · 25 min read ·
- PgBouncer's October 2026 Authentication Bypass Explained: Upgrade to 1.26.1How pooling and SCRAM logins work, how to check exposure and how to patch.Backend · 18 min read ·
- PostgreSQL 14 End of Life Explained: How to Upgrade Before 12 November 2026What stops on 12 November 2026, the risks of staying, the three upgrade paths and how to pick a target version.Backend · 19 min read ·
- PostgreSQL JDBC's October 2026 CVEs Explained: Fail-Open Auth and Padding LeaksA login rule that failed open, padding that leaked old bytes and what to do.Backend · 17 min read ·
- Design a Rate Limiter: Token Bucket, Sliding Window and RedisA complete system design interview answer for a distributed rate limiter: requirements, token bucket vs leaky bucket vs sliding window, Redis with atomic Lua scripts, headers, failure modes and scaling.System design · 14 min read ·
- Databases from First Principles: How Storage, Indexes and Transactions Really WorkA first-principles guide to databases: how rows hit disk, why B-trees and LSM trees exist, what an index really costs, how transactions and isolation levels work, and when to pick SQL or NoSQL.Backend · 16 min read ·
- System Design for Beginners: A Visual Roadmap from Requirements to Real SystemsA practical visual guide to system design for beginners, covering requirements, APIs, data modeling, architecture, scaling, reliability, observability, and real-world examples.System design · 22 min read ·
- Backend Engineering from First PrinciplesA detailed guide to backend engineering from first principles. Learn how backend systems really work beyond CRUD APIs, including requests, HTTP, routing, authentication, validation, business logic, databases, caching, queues, observability, security, scaling, testing, OpenAPI, webhooks, and DevOps.Backend · 18 min read ·
- Vector Database Architecture: How Semantic Search Systems Work at ScaleA detailed guide to vector database architecture covering embeddings, indexing, similarity search, storage design, filtering, and production trade-offs in modern AI systems.AI and GenAI · 16 min read ·