Relational Modeling & Normalization
Model entities, keys and relationships, normalize from 1NF to BCNF, denormalize deliberately, and push business invariants into database constraints.
Indexing
How B+tree indexes work, clustered vs heap storage, composite and covering indexes, specialized index types, selectivity, write cost, and why the planner ignores your index.
Transactions & Isolation Levels
ACID stated precisely, the concurrency anomalies that matter, how Postgres and MySQL actually implement isolation with MVCC, and how to stop double-spends and write skew.
Locking & Concurrency Control
Row and table locks, FOR UPDATE with SKIP LOCKED and NOWAIT, optimistic locking, conditional updates, advisory locks, deadlocks, and hot-row mitigations for balances and inventory.
Query Optimization
Read EXPLAIN ANALYZE plans, understand scan and join strategies and planner statistics, eliminate N+1 queries, paginate with keysets, size connection pools, and run a repeatable slow-query workflow.
Schema Patterns: Money, Audit, Multi-tenancy
Battle-tested schema patterns for money, audit history and temporal data, soft deletes, idempotency keys, the outbox, multi-tenancy with RLS, JSONB, enums, and UUID vs bigint keys.
Storage Engines: B-Tree vs LSM
How page-oriented B-tree engines and log-structured merge trees store data, the role of the WAL, write/read/space amplification, real engines from InnoDB to Cassandra, and how to choose for ledgers and event logs.
NoSQL Data Modeling
Model data for key-value, document, wide-column and graph databases with query-first design, Cassandra partition and clustering keys, DynamoDB single-table design and GSIs, and judge where NoSQL fits banks and e-commerce.
Partitioning & Sharding in Practice
Postgres declarative partitioning and pruning, time-based partitions for transaction tables and retention, Citus and Vitess style sharding, choosing shard keys for banks and marketplaces, cross-shard transactions, and rebalancing.
PostgreSQL Deep Dive
Postgres internals for architects and operators β process model, shared buffers, WAL and checkpoints, MVCC tuples, vacuum, bloat and XID wraparound, streaming and logical replication, Patroni HA, backups and PITR, extensions, and tuning knobs.
Redis Deep Dive
Redis data structures, the single-threaded execution model, RDB and AOF persistence, replication and Sentinel, Cluster hash slots, Lua atomicity, production patterns (cache, rate limiter, locks, leaderboard, idempotency), eviction, and the pitfalls that cause outages.
Zero-Downtime Schema Migrations
Change live schemas without outages using expand/contract, lock-aware DDL in Postgres and MySQL, online schema change tools, batched backfills, dual writes versus CDC, migration testing, and rollback plans.