# How Databases Work (howdatabaseswork.com) > How PostgreSQL, MySQL and MongoDB work in real systems: internals, side-by-side comparisons, measured lab > notebooks, and design docs that say which database each kind of application data belongs in, and why. Written by a database engineer. An MCP server for AI assistants: https://howdatabaseswork.com/assistant/ ## Learn - [Start 1: the basics](https://howdatabaseswork.com/start-here/): The basics: vocabulary, teams, runbook, one insert end to end, read, update, delete, crash, three scenarios, a quiz, and eight incident cards. - [Start 2: ten concepts](https://howdatabaseswork.com/concepts/): Ten database concepts, one picture and one line each, told with books and shelves: index, normalization, join, transaction, ACID, deadlock, partitioning, sharding, replication, read replica. - [Start 3: how a query travels](https://howdatabaseswork.com/lessons/query-path/): Follow one UPDATE through a real database, step by step: the pooler, the backend process, the planner, the index, the buffer pool, the lock, the WAL flush at COMMIT, the replica and the checkpoint, with measured times. - [Start 4: napkin math](https://howdatabaseswork.com/lessons/napkin-math/): Estimate a table before you build it: row size, rows per page, table and index size, memory, WAL per day, commits per second and restore time, with rules of thumb measured on real PostgreSQL and MySQL. - [The course](https://howdatabaseswork.com/course/): One order through the whole site: from one query to one server, to replicas, shards and whole system designs, with animated step-throughs, measured numbers and a quiz at the end of each lesson. Progress is saved in your browser. - [Short videos](https://howdatabaseswork.com/videos/): Vertical videos of the step-throughs on this site, under a minute each: a query from app to disk, a missing index, random UUIDs, hash mod N, CAP, a failover, the dual write bug and more. - [PostgreSQL 1: why PostgreSQL](https://howdatabaseswork.com/postgresql/): PostgreSQL internals: WAL, 8 KB pages, shared_buffers, MVCC and VACUUM. Files on disk, log files, outage parameters and commands. - [PostgreSQL 2: how it stores your data](https://howdatabaseswork.com/postgresql/architecture/): Chapter 2 of the PostgreSQL track: the processes, the memory, the files on disk and the logs, layer by layer. - [PostgreSQL 3: what happens on every write](https://howdatabaseswork.com/postgresql/internals/): Chapter 3 of the PostgreSQL track: the WAL, checkpoints, MVCC and vacuum, each explained from the problem it solves. - [PostgreSQL 4: high availability with Patroni](https://howdatabaseswork.com/postgresql/patroni/): How PostgreSQL failover worked by hand, what Patroni automates, and how to set up, fail over, switch over and watch a three-node Patroni cluster with etcd and HAProxy. - [PostgreSQL 5: running it as a DBRE](https://howdatabaseswork.com/postgresql/operate/): Chapter 5 of the PostgreSQL track: what to watch, the log files, the parameters that matter, and the commands to check every claim. - [PostgreSQL 6: when it breaks](https://howdatabaseswork.com/postgresql/breaks/): Chapter 6 of the PostgreSQL track: the playbooks for PostgreSQL and Patroni, starting from the symptom you see. - [PostgreSQL on Kubernetes: CloudNativePG](https://howdatabaseswork.com/postgresql/cloudnativepg/): How the CloudNativePG operator runs PostgreSQL on Kubernetes: setup, failover, switchover, backups, and what to watch. Compared with Patroni. - [MySQL 1: why MySQL](https://howdatabaseswork.com/mysql/): MySQL and InnoDB internals: .ibd files, redo log, binlog, buffer pool, undo and purge. Files on disk, log files, outage parameters and commands. - [MySQL 2: how it stores your data](https://howdatabaseswork.com/mysql/architecture/): Chapter 2 of the MySQL track: the threads, the buffer pool, the files on disk and the logs. - [MySQL 3: what happens on every write](https://howdatabaseswork.com/mysql/internals/): Chapter 3 of the MySQL track: the buffer pool, redo, undo and the binlog, locks, and how the optimizer picks an index. - [MySQL 4: high availability with InnoDB Cluster](https://howdatabaseswork.com/mysql/innodb-cluster/): How MySQL went from MyISAM and manual replica promotion to Group Replication, and how to set up, fail over, switch over and watch a three-node InnoDB Cluster with MySQL Router. - [MySQL 5: running it as a DBRE](https://howdatabaseswork.com/mysql/operate/): Chapter 5 of the MySQL track: what to watch, the log files, the parameters that matter, and commands to check every claim. - [MySQL 6: when it breaks](https://howdatabaseswork.com/mysql/breaks/): Chapter 6 of the MySQL track: the playbooks for MySQL and InnoDB Cluster, and a common incident walked through. - [MySQL failover with Orchestrator](https://howdatabaseswork.com/mysql/orchestrator/): How Orchestrator watches a MySQL replication topology, decides a source is dead by asking its replicas, fails over with guardrails, and moves the writer in ProxySQL. Setup, commands and what breaks. - [MySQL on Kubernetes: the Percona operators](https://howdatabaseswork.com/mysql/kubernetes/): The two Percona operators for MySQL on Kubernetes, based on XtraDB Cluster and on Percona Server with Group Replication or Orchestrator: how to pick, set up, scale, pause, back up and what breaks. - [MongoDB 1: why MongoDB](https://howdatabaseswork.com/mongodb/): MongoDB and WiredTiger internals: .wt files, journal, oplog, cache and sharding. Files on disk, log files, outage parameters and commands. - [MongoDB 2: how it stores your data](https://howdatabaseswork.com/mongodb/architecture/): Chapter 2 of the MongoDB track: mongod, the WiredTiger cache, the files on disk and the logs. - [MongoDB 3: what happens on every write](https://howdatabaseswork.com/mongodb/internals/): Chapter 3 of the MongoDB track: the WiredTiger cache, the journal and checkpoints, and how indexes decide the cost of a query. - [MongoDB 4: high availability with replica sets](https://howdatabaseswork.com/mongodb/replica-sets/): How MongoDB replica sets elect a primary, why three data-bearing members and majority write concern are the safe default, and how to set up, step down and watch a replica set. - [MongoDB 5: running it as a DBRE](https://howdatabaseswork.com/mongodb/operate/): Chapter 5 of the MongoDB track: what to watch, the log files, the parameters that matter, and commands to check every claim. - [MongoDB 6: when it breaks](https://howdatabaseswork.com/mongodb/breaks/): Chapter 6 of the MongoDB track: the playbooks for MongoDB and replica sets, and a sharding incident walked through. - [MongoDB on Kubernetes: the Percona operator](https://howdatabaseswork.com/mongodb/kubernetes/): How the Percona Operator for MongoDB runs replica sets and sharded clusters on Kubernetes: set up, scale, pause, back up with PBM, and what happens when a primary pod dies. MongoDB's own operators briefly. - [B-tree and LSM tree](https://howdatabaseswork.com/lessons/storage-engines/): How the two storage engine designs handle the same insert: a B-tree changes the page where the key belongs, an LSM tree appends to memory and merges files later. Step-through animations, trade-offs, and which databases use which. - [Redis 1: why Redis](https://howdatabaseswork.com/redis/): How Redis works: one thread, everything in memory, RDB snapshots and the AOF, asynchronous replication, and the big keys, hot keys and forks that break it. With measured numbers. - [Redis 2: how it stores your data](https://howdatabaseswork.com/redis/architecture/): Chapter 2 of the Redis track: the architecture, where the data lives, and one request followed end to end. - [Redis 3: high availability](https://howdatabaseswork.com/redis/ha/): Chapter 3 of the Redis track: high availability, what it protects, how it works, and what it can lose. - [Redis 4: running it as a DBRE](https://howdatabaseswork.com/redis/operate/): Chapter 4 of the Redis track: what to watch, the settings that matter, the commands, and what we measured. - [Redis 5: when it breaks](https://howdatabaseswork.com/redis/breaks/): Chapter 5 of the Redis track: the failures to plan for, and the playbooks. - [Cassandra 1: why Cassandra](https://howdatabaseswork.com/cassandra/): How Cassandra works: a ring of equal nodes, the partition key, commit log, memtables and SSTables, consistency levels, tombstones, repair and compaction. With measured numbers. - [Cassandra 2: how it stores your data](https://howdatabaseswork.com/cassandra/architecture/): Chapter 2 of the Cassandra track: the architecture, where the data lives, and one request followed end to end. - [Cassandra 3: high availability](https://howdatabaseswork.com/cassandra/ha/): Chapter 3 of the Cassandra track: high availability, what it protects, how it works, and what it can lose. - [Cassandra 4: running it as a DBRE](https://howdatabaseswork.com/cassandra/operate/): Chapter 4 of the Cassandra track: what to watch, the settings that matter, the commands, and what we measured. - [Cassandra 5: when it breaks](https://howdatabaseswork.com/cassandra/breaks/): Chapter 5 of the Cassandra track: the failures to plan for, and the playbooks. - [Vector databases 1: why vector search](https://howdatabaseswork.com/vector-databases/): How vector search works: embeddings, HNSW and IVF indexes, recall against speed, quantization, the filtered-search trap, and when pgvector is enough. With measured numbers. - [Vector databases 2: how it stores your data](https://howdatabaseswork.com/vector-databases/architecture/): Chapter 2 of the Vector databases track: the architecture, where the data lives, and one request followed end to end. - [Vector databases 3: high availability](https://howdatabaseswork.com/vector-databases/ha/): Chapter 3 of the Vector databases track: high availability, what it protects, how it works, and what it can lose. - [Vector databases 4: running it as a DBRE](https://howdatabaseswork.com/vector-databases/operate/): Chapter 4 of the Vector databases track: what to watch, the settings that matter, the commands, and what we measured. - [Vector databases 5: when it breaks](https://howdatabaseswork.com/vector-databases/breaks/): Chapter 5 of the Vector databases track: the failures to plan for, and the playbooks. - [Database families](https://howdatabaseswork.com/families/): Ten families of databases, from B-tree row stores to LSM, column, in-memory, distributed SQL and vector search, and the traffic each one handles well. - [Engines side by side](https://howdatabaseswork.com/compare/): Four everyday events, a write, a crash, a lagging replica and a long transaction, shown side by side for PostgreSQL, MySQL and MongoDB. - [Queries that look fine and are not](https://howdatabaseswork.com/queries/): Column order in an index, covering queries, OFFSET against keyset paging, and N+1, measured on PostgreSQL 18, MySQL 8.4 and MongoDB 8.0. - [Lost updates and write skew](https://howdatabaseswork.com/isolation/): Two concurrency bugs, lost update and write skew, run as real interleaved sessions on PostgreSQL 18, MySQL 8.4 and MongoDB 8.0, with the fixes. - [Many servers 1: keep a copy running](https://howdatabaseswork.com/ha/): Chapter 1 of the many servers story: why one server is not enough, the three questions every high availability setup answers, and a map to each engine's high availability chapter. - [Many servers 2: who is the leader](https://howdatabaseswork.com/lessons/consensus/): How a database cluster agrees on one primary: Patroni and etcd step by step through a failover, the lease, the race, promotion and the old primary rejoining, and how MongoDB, MySQL InnoDB Cluster, Redis Sentinel and Cassandra do it. - [Many servers 3: CAP as settings](https://howdatabaseswork.com/lessons/cap/): CAP from the database side: the same network split with MongoDB at w: majority and Cassandra at consistency ONE, step by step, and the setting in PostgreSQL, MySQL, MongoDB, Cassandra and Redis that makes the choice per write. - [Many servers 4: unique IDs](https://howdatabaseswork.com/lessons/unique-ids/): Sequences, UUIDv4, UUIDv7 and Snowflake IDs from the database side: what each does to a B-tree index, measured on one million rows in PostgreSQL 18 and MySQL 8.4. Random keys made MySQL inserts ten times slower. - [Many servers 5: split the data](https://howdatabaseswork.com/lessons/consistent-hashing/): How Cassandra, Redis Cluster, MongoDB and others decide which server holds a key, why hash mod N moves 75% of data when a server is added, and how token rings, virtual nodes and hash slots move only a share. - [Many servers 6: across services](https://howdatabaseswork.com/lessons/sagas-outbox/): How to keep data consistent across services without distributed transactions: why writing to the database and publishing an event separately loses events, how the transactional outbox fixes it, and how a saga undoes earlier steps with compensations. - [Many servers 7: a thousand databases](https://howdatabaseswork.com/fleet/): The layers a database team builds to run a thousand databases: inventory, config management, proxies, orchestrators and operators, guarded failover, restore tests, upgrades in waves, observability and runbooks. With sourced examples. - [Staff path, zero to architect](https://howdatabaseswork.com/staff-path/): Zero to staff level in 6 levels: every concept as one problem plus one diagram, with labs on data pages, B+ trees and MVCC, and every idea on one card. ## Practice - [The daily](https://howdatabaseswork.com/daily/): Three database questions a day, the same for everyone: guess a measured number, then two quiz questions from across the site. Keep a streak and share your result. - [Practice 1: watch it happen](https://howdatabaseswork.com/labs/): Four small simulations: crash recovery, replica lag, a lock pile-up, and page counts for a scan against an index lookup. - [Practice 2: watch an index grow](https://howdatabaseswork.com/index-playground/): Insert rows into a B-tree and watch pages fill and split: sequential ids, random UUIDs and time-ordered UUIDs, in PostgreSQL, InnoDB and MongoDB. - [Practice 3: try it in your browser](https://howdatabaseswork.com/tutorials/): Three guided tutorials on a real PostgreSQL running in your browser: row versions, scan against index, and column order in an index. - [Practice 4: real numbers](https://howdatabaseswork.com/notebooks/): Ten experiments run on real PostgreSQL 18, MySQL 8.4, MongoDB 8.0, Redis, ClickHouse, Cassandra and pgvector, with the captured output: long transactions, commit cost, scans, concurrency anomalies, query shapes, design checks, other engines, agent memory, Redis and Cassandra under failure, and what the primary key costs on insert. - [Practice 5: fix a real cluster](https://howdatabaseswork.com/labs/hands-on/): Practice on a real PostgreSQL primary and replica on your own laptop: a broken cluster, a task, hints, and a check that grades your fix. Invite only. - [Query coach](https://howdatabaseswork.com/coach/): Paste a SQL query, and optionally the table definitions and an EXPLAIN plan. The coach lists what to look at, why, the fix, and the lesson that explains it. Runs in your browser. - [EXPLAIN reader](https://howdatabaseswork.com/plan/): Paste a PostgreSQL, MySQL or MongoDB query plan and see it as a tree, with the slow step found and the usual causes named. Runs in your browser. - [Config checker](https://howdatabaseswork.com/config/): Paste PostgreSQL, MySQL or MongoDB settings and see which are risky, which cost speed, and what to change. Runs in your browser. - [Health check](https://howdatabaseswork.com/health/): Run a read-only script on PostgreSQL, MySQL or MongoDB, paste the output, and get a report: connections, cache, long transactions, bloat, unused indexes, replication, top queries and settings. ## Design - [System design 1: one server](https://howdatabaseswork.com/system-design/basics/): What system design means, the six things every design trades, one app growing from one database to many, four real failures, and what to choose for the problem you have. - [System design 2: model the data](https://howdatabaseswork.com/data-modeling/): Primary keys, types, constraints, normalizing and embedding, and deletes, for PostgreSQL, MySQL and MongoDB: the table design choices that are cheap on day one and expensive later. - [System design 3: grow it](https://howdatabaseswork.com/system-design/): The 25 system design concepts every engineer hears, from the database side: load balancing, scaling, caching, replication, sharding, failover, disaster recovery and multi-region, with what breaks and the command to check. - [System design 4: pick the store](https://howdatabaseswork.com/designs/): Fourteen design docs for common applications, with a picker: what kind of data goes in which database, and why. - [System design 5: real systems](https://howdatabaseswork.com/system-design/real/): Chapter 5 of the system design story: Instagram, Amazon and a digital bank, followed from the phone to the database, each linked to the design docs it brings to life. - [Instagram, one tap, every layer](https://howdatabaseswork.com/system-design/instagram/): How Instagram serves a feed and a photo upload, from the phone through the CDN, load balancers, Django, queues, caches, sharded PostgreSQL and Cassandra, from its own engineering posts. - [Amazon, add to cart and check out](https://howdatabaseswork.com/system-design/amazon/): How an Amazon cart works, from the browser through services, Dynamo and DynamoDB, using the Dynamo paper, Werner Vogels, the 2019 Oracle migration post and the Prime Day numbers AWS published. - [A digital bank (Monzo), send money](https://howdatabaseswork.com/system-design/bank/): How a digital bank moves money, from the app through payment services, ledger, queues and Cassandra to Faster Payments, from Monzo's own engineering posts and talks. - [System design 6: the big calls](https://howdatabaseswork.com/decisions/): Ten decisions a database engineer has to make, each with the price stated up front. PostgreSQL, MySQL and MongoDB, compared on the same decision. - [System design 7: your turn](https://howdatabaseswork.com/lessons/url-shortener/): The classic system design exercise, from the database side: generating codes with a sequence and base 62, the links table, cache-aside reads from Redis and replicas, counting clicks without a hot row, napkin math for a billion links, and how it shards. - [Store orders and inventory](https://howdatabaseswork.com/designs/store-orders/): Orders, order lines, payments references and stock live in one relational database, PostgreSQL or MySQL. Carts can live in Redis. Product search goes to a. - [Payments and ledgers](https://howdatabaseswork.com/designs/payments-ledger/): A relational database with a double-entry ledger that is append-only, with idempotency keys and synchronous replication. Correctness first, speed. - [Bookings and reservations](https://howdatabaseswork.com/designs/booking-reservations/): A relational database with the rule enforced by the database itself: a unique constraint on (resource, slot), or an exclusion constraint on time ranges in. - [Accounts and sessions](https://howdatabaseswork.com/designs/accounts-sessions/): Accounts in the main relational database. Sessions in Redis or Valkey with an expiry, or no server-side session at all if you use short-lived signed. - [Multi-tenant SaaS](https://howdatabaseswork.com/designs/multi-tenant-saas/): Start with a shared schema and a tenant_id on every row, enforced by row-level security in PostgreSQL or by a mandatory filter in the data layer. Move. - [Product catalog](https://howdatabaseswork.com/designs/product-catalog/): PostgreSQL with common columns plus a JSONB column for the varied attributes, or MongoDB with one document per product. A search engine on top for. - [Social feed](https://howdatabaseswork.com/designs/social-feed/): Posts and the follow graph in a relational database. Timelines precomputed per user in Redis or a wide-column store (fan-out on write), except for. - [Search and AI retrieval](https://howdatabaseswork.com/designs/search-ai-retrieval/): Start in PostgreSQL: full-text search and pgvector, next to the data. Move to a dedicated search engine or vector database when the size, the query rate,. - [Chat and messaging](https://howdatabaseswork.com/designs/chat-messaging/): At small and medium scale, PostgreSQL with messages partitioned by time and indexed by (conversation_id, sent_at). At large scale, a wide-column store. - [IoT and telemetry](https://howdatabaseswork.com/designs/iot-telemetry/): A time-series database (TimescaleDB, InfluxDB) or a column store (ClickHouse), with time partitioning, compression, downsampling and retention. Device. - [Audit and event logs](https://howdatabaseswork.com/designs/audit-event-log/): An append-only table partitioned by time in the relational database, or a stream (Kafka) with a long retention plus a copy in object storage. Never. - [Leaderboards and counters](https://howdatabaseswork.com/designs/leaderboards-counters/): Redis or Valkey: sorted sets for leaderboards, INCR with a TTL for counters and rate limits. Flush totals to the database in batches if they must be. - [Analytics and reporting](https://howdatabaseswork.com/designs/analytics-reporting/): Not on the production primary. Copy data to a column store (ClickHouse, BigQuery, Redshift, Snowflake, DuckDB for small cases) through change data capture. - [Agent memory and state](https://howdatabaseswork.com/designs/agent-memory/): Where an AI agent's conversations, checkpoints, tool calls and long-term memories go: PostgreSQL with pgvector for most of it, Redis for working memory, with measured recall and filter results. - [Anti-patterns](https://howdatabaseswork.com/designs/anti-patterns/): Fifteen database anti-patterns: what you see, why it happens inside the engine, and what to do instead. - [What a commit waits for](https://howdatabaseswork.com/decisions/sync-replication-failover/): Synchronous replication and failover: what a commit waits for before it returns, and what that choice costs when a server dies. PostgreSQL, MySQL and MongoDB, compared. - [Design doc template](https://howdatabaseswork.com/designs/template/): A copyable outline for a database design doc: workload, cost of a lost write, placement, model, durability, growth, failures, alternatives and cost. - [Submit a design for review](https://howdatabaseswork.com/designs/review/): Send a database design for review, in public as a GitHub issue or in private, and the questions every review asks. ## Operate - [When it breaks 1: what you see](https://howdatabaseswork.com/symptoms/): On-call runbooks for databases: too many connections, CPU at 100%, disk filling, replica lag, lock waits, a query that got slow and more. Where to start, then each step with the commands for PostgreSQL, MySQL and MongoDB, plus Redis, Cassandra and pgvector. - [When it breaks 2: practice on call](https://howdatabaseswork.com/oncall/): Three branching database incidents: a disk filling up, checkout timing out, and a replica far behind. Pick what to check, and see why it was a good or bad call. - [When it breaks 3: real failures](https://howdatabaseswork.com/stories/): Nineteen real database incidents from Uber, GitHub, Notion, Slack, Shopify, Adyen, Figma, Dropbox, Epic Games, GitLab, Instacart, Discord and Instagram, each with the numbers, the fix, and the lesson. Plus a diagram per story. - [The DBA agent scorecard](https://howdatabaseswork.com/agent/): A DBA agent tested on real PostgreSQL, MySQL and MongoDB incidents: read-only, from the symptom to the playbook to the cause, with the latest scorecard. - [Database operations with AI agents](https://howdatabaseswork.com/agent/operations/): What an AI agent may observe, recommend and change in a production database: a permission model, a hard five-connection limit for PostgreSQL, a worked incident and a simulation. - [Run it well 1: where it runs](https://howdatabaseswork.com/designs/hosting/): On-prem, self-managed on VMs or EC2, managed cloud, serverless, vendor services or Kubernetes: who does what, the full cost, and where to run each kind of application. - [Run it well 2: what the cloud takes over](https://howdatabaseswork.com/cloud/): On-prem vs cloud for PostgreSQL, MySQL and MongoDB: what RDS, Aurora, Cloud SQL and Atlas take over, what the DBA still owns, and the tradeoffs. - [Run it well 3: size it](https://howdatabaseswork.com/designs/capacity/): Estimate data size, working set, memory, disk and log volume for a table, with every assumption stated. - [Run it well 4: the bill](https://howdatabaseswork.com/decisions/cost-model/): Where a database bill comes from, six patterns that inflate it with a query to find each, and a safe order for cutting it. - [Run it well 5: connections](https://howdatabaseswork.com/decisions/connection-pooling/): How many database connections you need, what each costs in PostgreSQL, MySQL and MongoDB, where PgBouncer, ProxySQL or RDS Proxy fit, and the pool-size arithmetic. - [Run it well 6: backups](https://howdatabaseswork.com/decisions/backup-restore/): How to back up PostgreSQL, MySQL and MongoDB so you can restore to any moment: physical backups, log archiving, PITR, restore-time arithmetic and what breaks. - [Run it well 7: security](https://howdatabaseswork.com/security/): Database security in five layers for PostgreSQL, MySQL and MongoDB: network, encrypted and authenticated connections, least-privilege roles, backups and dev copies, and auditing, with the commands to check each. - [Run it well 8: migrations](https://howdatabaseswork.com/designs/migrations/): Four migration playbooks: add change data capture, split a database, move from MySQL to PostgreSQL, and add a cache, each with checks and a way back. - [Run it well 9: upgrades](https://howdatabaseswork.com/decisions/major-upgrades/): How to upgrade PostgreSQL, MySQL and MongoDB major versions: pg_upgrade, logical replication, newer replicas, rolling upgrades, feature compatibility, and what breaks afterwards. - [Run it well 10: what changed](https://howdatabaseswork.com/releases/): What operators need to know in PostgreSQL 19, MySQL 9.7 LTS and MongoDB 9.0: changed defaults, upgrade breakers, and new features worth using. - [Cheat sheet](https://howdatabaseswork.com/cheat-sheet/): Each engine in 8 rules: PostgreSQL, MySQL/InnoDB and MongoDB/WiredTiger: one rule, one plain line, one diagram, with deep-dive links. - [Reference: plans, logs, checklist](https://howdatabaseswork.com/reference/): Quick lookup: side-by-side engine comparison, annotated EXPLAIN output, the log-file pattern and failure modes, and the DBA checklist. ## About - [About](https://howdatabaseswork.com/about/): Who wrote this site and why: a production database engineer on PostgreSQL, MySQL, MongoDB and Aurora, and how to use the site from zero to staff level. - [Corrections](https://howdatabaseswork.com/corrections/): Every correction that changed what a page on this site teaches, with the date, what it said and what it says now. - [Reading list](https://howdatabaseswork.com/references/): Books, tools and posts this site leans on, with one line each on what each is best for and which pages it backs. - [Work with me](https://howdatabaseswork.com/work-with-me/): A database health check for PostgreSQL and MySQL, and a review of the database side of AI agent systems: durability, performance, cost, safe access and memory, written up and ranked by risk. - [Use it from your AI assistant](https://howdatabaseswork.com/assistant/): Use this site from Claude, Cursor or any MCP client: which database for an application, sizing estimates, and lessons, answered from the design docs. - [All pages](https://howdatabaseswork.com/sitemap/): Every page on the site in four parts plus About, in reading order: Learn, Practice, Design, Operate, About.