---
title: "MySQL"
description: "MySQL, MariaDB or Vitess"
url: "https://swe.quest/tags/mysql?per=96"
---

# MySQL

Topic in Data & databases: MySQL, MariaDB or Vitess

By difficulty: [Easy](https://swe.quest/tags/mysql.md?difficulty=easy) · [Medium](https://swe.quest/tags/mysql.md?difficulty=medium) · [Hard](https://swe.quest/tags/mysql.md?difficulty=hard)

Posts 1–45 of 45, page 1 of 1, newest first.

## 2026-11-19

- [Building PlanetScale with Insights Agent](https://swe.quest/articles/building-planetscale-with-insights-agent-b70b35e12242702e.md): PlanetScale · 2026-11-19 · Medium · 5 min read · MySQL, Performance engineering, AI agents, Ruby, Databases
  PlanetScale ran its Insights Agent, which finds costly queries via Query Insights and opens fix PRs, against its own Rails API on MySQL.

## 2026-11-18

- [How United Airlines streams database changes to Apache Iceberg with Amazon Data Firehose](https://swe.quest/articles/how-united-airlines-streams-database-changes-to-apache-iceberg-with-amazon-data-7135675271dc704f.md): AWS Architecture Blog · 2026-11-18 · Medium · 24 min read · Event-driven architecture, Data pipelines, Cloud platforms, Analytics & OLAP, MySQL
  United Airlines replicates frequently changing reference data from Aurora MySQL into Apache Iceberg tables on S3 in near-real-time using AWS DMS CDC, Kinesis Data Streams, a Lambda transform and Amazon Data Firehose, which applies inserts, updates and deletes via merge-on-read and commits Iceberg snapshots to the Glue Data Catalog.

## 2026-10-22

- [Security Disclosure Recommendation: Rotate MySQL Database Credentials](https://swe.quest/articles/security-disclosure-recommendation-rotate-mysql-database-credentials-79450d4ad1284c9e.md): Railway · 2026-10-22 · Medium · 3 min read · MySQL, Security, Incidents & postmortems, Identity & auth
  Railway MySQL users whose password or MYSQL\_URL may have been exposed should rotate the credential with the Regenerate button in the Database View.

## 2026-10-06

- [Beyond synthetic testing: Capturing and replaying real database workloads at Airbnb](https://swe.quest/articles/beyond-synthetic-testing-capturing-and-replaying-real-database-workloads-at-ad8d4a3a0c1cef6e.md): Airbnb Engineering · 2026-10-06 · Medium · 11 min read · MySQL, Testing, Capacity planning, Performance engineering, Databases
  Airbnb replaced fragmented per-language client-side query logging with a client-agnostic capture point in ProxySQL, so real production MySQL traffic can be replayed offline.

## 2026-09-10

- [Loading Parquet data into MySQL with ClickHouse](https://swe.quest/articles/loading-parquet-data-into-mysql-with-clickhouse-e9a6bbccc1c8e2b3.md): ClickHouse · 2026-09-10 · Medium · 6 min read · MySQL, Data pipelines, SQL
  MySQL has no native Parquet import, but clickhouse-local can read a Parquet file over HTTP with the \`url\` table function and write it straight into a MySQL table via \`INSERT INTO FUNCTION mysql(...)\`.

## 2026-09-02

- [5 Billion Records, 10 Terabytes, Four Weeks: A Real Data Migration Playbook](https://swe.quest/articles/5-billion-records-10-terabytes-four-weeks-a-real-data-migration-playbook-ba6d0d87ec973dae.md): Wix Engineering · 2026-09-02 · Medium · 9 min read · Schema migrations, Data pipelines, Queues & messaging, MySQL, Testing
  Wix's large live-system migrations dropped from months or years to weeks mainly by tackling recurring problems before the migration starts, not through new tooling.
- [MySQL CDC connector for ClickPipes is now Generally Available](https://swe.quest/articles/mysql-cdc-connector-for-clickpipes-is-now-generally-available-67d5bc9ddaf5dc04.md): ClickHouse · 2026-09-02 · Easy · 6 min read · Event-driven architecture, MySQL, Analytics & OLAP, Replication, Data pipelines
  ClickPipes' MySQL CDC connector, which replicates MySQL and MariaDB into ClickHouse Cloud, is generally available after moving over 1PB for hundreds of customers.

## 2026-08-12

- [Migrating from PostgreSQL/MySQL to SQLite: When and How to Make the Switch](https://swe.quest/articles/migrating-from-postgresql-mysql-to-sqlite-when-and-how-to-make-the-switch-9d0f845128cffdd6.md): Turso · 2026-08-12 · Medium · 9 min read · SQLite, Schema migrations, PostgreSQL, MySQL, Databases
  SQLite, especially via Turso Cloud, can replace PostgreSQL or MySQL for read-heavy, moderate-write workloads, trading complex-JOIN optimization, stored procedures, rich types and native replication for simpler operations, lower cost and local reads.

## 2026-08-04

- [From Batch Snapshots to Near-Real-Time Data](https://swe.quest/articles/from-batch-snapshots-to-near-real-time-data-66d4723d1d45278d.md): Doximity Technology · 2026-08-04 · Medium · 13 min read · Event-driven architecture, Data pipelines, MySQL, Analytics & OLAP, Replication
  Doximity added a Debezium/Kafka/Snowflake CDC pipeline alongside its existing Aurora point-in-time batch snapshots, bringing 95% of sampled events to a queryable layer within eight minutes.

## 2026-05-12

- [We replaced Redis with MySQL for inventory reservations—and it scaled](https://swe.quest/articles/we-replaced-redis-with-mysql-for-inventory-reservations-and-it-scaled-2f8fab4ab3565f02.md): Shopify Engineering · 2026-05-12 · Medium · 10 min read · MySQL, E-commerce, Concurrency, Scaling, Performance engineering
  Shopify moved checkout inventory reservations from Redis to MySQL by modeling one row per sellable unit and using SELECT ...
- [Migrating Data Ingestion Systems at Meta Scale](https://swe.quest/articles/migrating-data-ingestion-systems-at-meta-scale-338df596ae05796f.md): Meta Engineering · 2026-05-12 · Medium · 9 min read · Data pipelines, Event-driven architecture, MySQL, Refactoring & migrations, Deployment
  Meta migrated tens of thousands of MySQL-to-warehouse change data capture (CDC) ingestion jobs, together moving several petabytes daily, from customer-owned pipelines to a self-managed warehouse service, and fully retired the legacy system.

## 2026-03-26

- [How we standardized MariaDB in our Integration Server](https://swe.quest/articles/how-we-standardized-mariadb-in-our-integration-server-e747f0ce7836dd7f.md): Wealthfront Engineering · 2026-03-26 · Medium · 7 min read · Testing, MySQL, Containers, CI/CD, Java & JVM
  Wealthfront replaced the embedded HSQLDB in its Integration Server, a self-contained production mirror used for integration tests, local end-to-end debugging and Jenkins gating, with MariaDB to match production.

## 2026-03-19

- [Migrating Etsy’s database sharding to Vitess](https://swe.quest/articles/migrating-etsy-s-database-sharding-to-vitess-c6bef1d09f2cd679.md): Etsy Code as Craft · 2026-03-19 · Medium · 9 min read · MySQL, Distributed databases, Refactoring & migrations, SQLite, Deployment
  Etsy moved shard routing for its ~1,000-table, ~1,000-shard, 425 TB MySQL cluster (1.7M requests/sec) from an ORM that looked up random shard mappings in a single index database to Vitess vindexes, without moving any data.

## 2026-02-19

- [Breaking the Loop: How we migrated our backup catalog for 250+ MySQL clusters to AWS](https://swe.quest/articles/breaking-the-loop-how-we-migrated-our-backup-catalog-for-250-mysql-clusters-to-a99d4c43a779f0a9.md): Booking.com Engineering · 2026-02-19 · Medium · 21 min read · MySQL, Cloud platforms, Storage systems, Resilience, Infrastructure as code
  Booking.com moved the Bacula backup catalog for 250+ MySQL clusters off its on-prem dbadb replication chain and onto Amazon RDS MySQL.

## 2025-11-20

- [How FabFunnel powers real-time marketing analytics with ClickHouse Cloud](https://swe.quest/articles/how-fabfunnel-powers-real-time-marketing-analytics-with-clickhouse-cloud-693f5ffb0f0b9887.md): ClickHouse · 2025-11-20 · Medium · 5 min read · Analytics & OLAP, Data pipelines, MySQL, Ads, Performance engineering
  FabFunnel moved its marketing analytics off a normalized MySQL reporting stack, where month-long queries took 11 seconds and year-long reports crashed browsers due to client-side merges, to ClickHouse Cloud.

## 2025-09-14

- [Bun v1.2.22](https://swe.quest/articles/bun-v1-2-22-c985f96b20e06efe.md): Bun · 2025-09-14 · Medium · 16 min read · JavaScript, Runtimes & VMs, Build systems, MySQL, Debugging
  Bun v1.2.22 adds async stack traces that include awaited caller frames, a fast path making postMessage and structuredClone up to ~240x faster for plain objects of primitives, and Bun.YAML.stringify.

## 2025-06-16

- [How LINE MANGA used ClickHouse to enable real-time analysis without moving a single row](https://swe.quest/articles/how-line-manga-used-clickhouse-to-enable-real-time-analysis-without-moving-a-542da6f6b53d1c64.md): ClickHouse · 2025-06-16 · Easy · 5 min read · Analytics & OLAP, MySQL, Distributed databases, Developer productivity
  LINE MANGA uses ClickHouse as a federated query layer over its horizontally and vertically sharded MySQL fleet, querying data in place rather than ingesting it.

## 2025-05-13

- [Under the Hood: Building MySQL Change Data Capture in ClickPipes](https://swe.quest/articles/under-the-hood-building-mysql-change-data-capture-in-clickpipes-285d2b2e8ad92711.md): ClickHouse · 2025-05-13 · Medium · 7 min read · Event-driven architecture, MySQL, Replication, Analytics & OLAP, Data pipelines
  ClickPipes captures MySQL changes by streaming the ROW-format binary log after an initial consistent snapshot, tracking progress through either GTID sets or binlog file/position checkpoints.

## 2024-08-14

- [Mitigating Deadlocks in high concurrency environments](https://swe.quest/articles/mitigating-deadlocks-in-high-concurrency-environments-f958e9ca77901412.md): Shopify Engineering · 2024-08-14 · Medium · 3 min read · MySQL, Concurrency, Storage engines, Databases
  Concurrent batch upserts into an InnoDB table keyed by a sequential id can deadlock even when processes touch different rows, because the gap locks taken on unique-key collisions span neighbouring index entries that other processes also need.

## 2024-07-23

- [How we improved availability through iterative simplification](https://swe.quest/articles/how-we-improved-availability-through-iterative-simplification-1aa63e0def5687e6.md): GitHub Engineering · 2024-07-23 · Medium · 6 min read · Performance engineering, MySQL, Ruby, Observability, Deployment
  GitHub cut timeouts in its Rails monolith with small, measured changes found through Datadog metrics, Splunk logs and custom MySQL slow-query monitors.
- [The State of Online Schema Migrations in MySQL — PlanetScale](https://swe.quest/articles/the-state-of-online-schema-migrations-in-mysql-planetscale-1e08889c563423ee.md): PlanetScale · 2024-07-23 · Medium · 9 min read · Schema migrations, MySQL
  MySQL's native INPLACE online DDL is unsuitable for non-blocking changes because it is resource-greedy, uninterruptible and blocks replicas, causing replication lag as long as the original ALTER.

## 2024-07-11

- [Corsearch replaces MySQL with ClickHouse for content and brand protection](https://swe.quest/articles/corsearch-replaces-mysql-with-clickhouse-for-content-and-brand-protection-e9a82a909bc26445.md): ClickHouse · 2024-07-11 · Easy · 6 min read · Analytics & OLAP, Observability, Vector search, MySQL
  Corsearch replaced a pre-aggregated, heavily partitioned MySQL setup with ClickHouse to serve interactive anti-piracy search-engine analytics across 10+ filterable dimensions with daily, weekly and monthly rollups.

## 2024-06-05

- [The silent syntax difference in foreign keys between Postgres and MySQL](https://swe.quest/articles/the-silent-syntax-difference-in-foreign-keys-between-postgres-and-mysql-36df1bac8b9567ad.md): Neon · 2024-06-05 · Medium · 6 min read · MySQL, PostgreSQL, SQL, Schema migrations
  MySQL parses but silently ignores inline column-level \`REFERENCES\` clauses, so a foreign key written Postgres-style (\`customer\_id INT REFERENCES customers(customer\_id) ON DELETE CASCADE\`) creates no constraint, no index and no cascade behavior in MySQL.

## 2024-03-08

- [Migrating data from MySQL to Turso](https://swe.quest/articles/migrating-data-from-mysql-to-turso-b6fe55604096d41a.md): Turso · 2024-03-08 · Medium · 2 min read · SQLite, MySQL, Schema migrations
  Moving a MySQL database to Turso takes three commands: dump it with mysqldump using --skip-extended-insert, convert the dump to a SQLite file with the mysql2sqlite script piped into sqlite3, then create a Turso database from that file with \`turso db create --from-file\`.

## 2024-01-17

- [Horizontally scaling the Rails backend of Shop app with Vitess](https://swe.quest/articles/horizontally-scaling-the-rails-backend-of-shop-app-with-vitess-03c7b2da20f98ec3.md): Shopify Engineering · 2024-01-17 · Medium · 27 min read · MySQL, Distributed databases, Ruby, Scaling, Schema migrations
  Shop app outgrew a single MySQL database despite federating tables across databases, so the team moved its Rails backend to Vitess, sharding user-owned tables by user\_id into a "users" keyspace and keeping the rest in an unsharded "global" keyspace.

## 2023-12-07

- [Upgrading GitHub.com to MySQL 8.0](https://swe.quest/articles/upgrading-github-com-to-mysql-8-0-2c7892d15b6d7ff3.md): GitHub Engineering · 2023-12-07 · Medium · 11 min read · MySQL, Replication, Deployment, Databases
  GitHub upgraded 1200+ MySQL hosts (300+ TB, 5.5M QPS, 50+ clusters, including Vitess) from 5.7 to 8.0 over more than a year without breaking SLOs.

## 2023-11-28

- [Managing Slack Connect](https://swe.quest/articles/managing-slack-connect-caad7a7b33cd97bf.md): Slack Engineering · 2023-11-28 · Medium · 9 min read · Configuration management, MySQL, Search, System design, Scaling
  Slack built per-connection configuration for Slack Connect using a single MySQL table keyed by source and target team ID, with org-level defaults modeled as target team 0 and settings stored as a Protobuf blob to avoid per-setting columns and tables.

## 2023-11-15

- [The Query Strikes Again](https://swe.quest/articles/the-query-strikes-again-fa807954ef58b362.md): Slack Engineering · 2023-11-15 · Medium · 13 min read · Incidents & postmortems, MySQL, Resilience, Replication, Distributed databases
  A customer's bulk removal of users triggered Slack's "forget user" async job, which fanned out into a huge number of "leave channel" jobs.

## 2023-10-05

- [A MySQL Journey](https://swe.quest/articles/a-mysql-journey-b6b26aa61d03be26.md): ClickHouse · 2023-10-05 · Medium · 15 min read · Analytics & OLAP, SQL, MySQL, Databases
  ClickHouse extended its MySQL wire-protocol and syntax compatibility so online-only BI tools like Looker Studio and Tableau Online, which allow no custom drivers, can query ClickHouse directly.

## 2023-08-24

- [Ongage's Strategic Shift to ClickHouse for Real-time Email Marketing](https://swe.quest/articles/ongage-s-strategic-shift-to-clickhouse-for-real-time-email-marketing-dfca8e1a38de318e.md): ClickHouse · 2023-08-24 · Easy · 7 min read · Analytics & OLAP, MySQL, Databases, Cloud platforms
  Ongage, an email and SMS marketing automation company processing about half a billion messages a day, moved its campaign analytics and automation reporting from a large AWS RDS MySQL cluster (alongside MongoDB and Redshift) to ClickHouse Cloud.

## 2023-05-16

- [Building and deploying MySQL Raft at Meta](https://swe.quest/articles/building-and-deploying-mysql-raft-at-meta-7a90b8f5fc15ecc0.md): Meta Engineering · 2023-05-16 · Hard · 18 min read · MySQL, Consensus, Replication, Distributed databases
  Meta replaced its MySQL semisynchronous replication, whose failover and membership changes were orchestrated by external Python automation, with MySQL Raft, a Raft consensus engine built into mysqld.

## 2022-10-04

- [Safely Adding NOT NULL Columns to Your Database Tables](https://swe.quest/articles/safely-adding-not-null-columns-to-your-database-tables-0c4b04a1141f0507.md): Shopify Engineering · 2022-10-04 · Medium · 7 min read · Schema migrations, MySQL, Databases
  Adding a NOT NULL column through LHM's shadow-table migration (new table, replication triggers, batched copy, rename) can break writes or silently lose data depending on the DEFAULT clause, an added UNIQUE INDEX and the MySQL SQL mode.

## 2022-04-26

- [Slack’s Incident on 2-22-22](https://swe.quest/articles/slack-s-incident-on-2-22-22-7a35cde32cfb5fd8.md): Slack Engineering · 2022-04-26 · Medium · 12 min read · Incidents & postmortems, Caching, Resilience, MySQL, Distributed systems
  A Consul agent rolling restart caused Mcrib, Slack's memcached control plane, to replace and flush cache nodes, dropping hit rates during peak traffic.

## 2022-01-18

- [FOQS: Making a distributed priority queue disaster-ready](https://swe.quest/articles/foqs-making-a-distributed-priority-queue-disaster-ready-0c0b1a2a20084eae.md): Meta Engineering · 2022-01-18 · Medium · 10 min read · Queues & messaging, Resilience, Replication, Distributed systems, MySQL
  Meta's FOQS distributed priority queue moved from isolated regional installations on semi-synchronous replicated MySQL to a single global installation, after Hurricane Florence in 2018 exposed manual traffic rebalancing and items stuck on unreachable shards.

## 2021-12-16

- [Power Loss Siren: Making Meta resilient to power loss events](https://swe.quest/articles/power-loss-siren-making-meta-resilient-to-power-loss-events-0c7d3a002aac02ac.md): Meta Engineering · 2021-12-16 · Medium · 9 min read · Datacenters, Resilience, MySQL, Replication, Hardware
  Power Loss Siren (PLS) is Meta's rack-level power loss detection system: a relay daemon on each top-of-rack switch polls power supply signals and, if AC power isn't restored within 45 seconds, sends a link-local UDP multicast so server-side handlers can act during the remaining ~45 seconds of the rack's 90-second battery runway.

## 2021-12-13

- [SLICK: Adopting SLOs for improved reliability](https://swe.quest/articles/slick-adopting-slos-for-improved-reliability-9a15b8e21d1155d4.md): Meta Engineering · 2021-12-13 · Medium · 8 min read · SRE, Observability, Incidents & postmortems, MySQL
  SLICK is Meta's centralized SLO store, built in 2019 and adopted by over 1,000 services by 2021, that unifies SLI/SLO definitions, indexes services for discovery, and retains per-minute SLI data for up to two years.

## 2021-12-02

- [Upgrading MySQL at Shopify](https://swe.quest/articles/upgrading-mysql-at-shopify-bb0f87b54fe985d5.md): Shopify Engineering · 2021-12-02 · Hard · 16 min read · MySQL, Replication, Debugging, Deployment, Cloud platforms
  Shopify moved hundreds of horizontally sharded Percona Server shards, thousands of VMs in all, from 5.7.21 to 5.7.32, mainly to get writeset-based replication parallelism across replication topologies up to four hops deep.

## 2021-10-21

- [Debugging Systems in the Cloud: MySQL, Kubernetes, and Cgroups](https://swe.quest/articles/debugging-systems-in-the-cloud-mysql-kubernetes-and-cgroups-a5ded3f862ca5b21.md): Shopify Engineering · 2021-10-21 · Hard · 8 min read · Debugging, Linux, MySQL, Kubernetes, Performance engineering
  Slow MySQL Pod startup and degraded query performance on long-running GKE nodes in Shopify's KateSQL platform traced back to a Linux kernel memory cgroup leak: roughly 50K zombie memory cgroups made mem\_cgroup\_commit\_charge slow, so each 128MB mmap during InnoDB buffer pool initialization took about 100 ms. The investigation used strace, perf flamegraphs, slabtop and /proc/cgroups, and Google kernel engineers confirmed it as a side effect of slab reparenting on cgroup removal.

## 2021-09-27

- [Partitioning GitHub’s relational databases to handle scale](https://swe.quest/articles/partitioning-github-s-relational-databases-to-handle-scale-7b5ea75acfc088c0.md): GitHub Engineering · 2021-09-27 · Medium · 9 min read · MySQL, Distributed databases, Scaling, Schema migrations, Ruby
  GitHub split its monolithic \`mysql1\` MySQL cluster by first virtually partitioning tables into schema domains (declared in YAML) and enforcing boundaries with query and transaction linters, then physically moving domains to new clusters via Vitess vertical sharding or a custom ProxySQL/GTID-based write-cutover script.

## 2021-09-24

- [Shard Balancing: Moving Shops Confidently with Zero-Downtime at Terabyte-scale](https://swe.quest/articles/shard-balancing-moving-shops-confidently-with-zero-downtime-at-terabyte-scale-76a6177fa357eea4.md): Shopify Engineering · 2021-09-24 · Medium · 13 min read · MySQL, Distributed databases, Schema migrations, Scaling
  Shopify rebalances its MySQL shards by moving individual shops between pods online, with downtime confined to a brief cutover.

## 2021-07-28

- [Email Classification](https://swe.quest/articles/email-classification-eca32c5c2123a429.md): Slack Engineering · 2021-07-28 · Medium · 11 min read · MySQL, Consistency models, System design, Scaling
  Slack classifies invited email addresses as internal or external, so it can steer users toward Workspace Invites or Slack Connect.

## 2021-07-22

- [Migrating Facebook to MySQL 8.0](https://swe.quest/articles/migrating-facebook-to-mysql-8-0-5af9e565f1e50eea.md): Meta Engineering · 2021-07-22 · Medium · 11 min read · MySQL, Schema migrations, Replication, Refactoring & migrations, Testing
  Facebook moved its MySQL fleet from a heavily customized 5.6 branch straight to 8.0, skipping 5.7.

## 2021-04-20

- [Dynamic ProxySQL Query Rules](https://swe.quest/articles/dynamic-proxysql-query-rules-1a5fc44afbe14316.md): Shopify Engineering · 2021-04-20 · Medium · 10 min read · MySQL, Configuration management, Resilience, Incidents & postmortems, Distributed systems
  Shopify runs thousands of ProxySQL instances in front of MySQL and uses query rules to reroute, rewrite or reject queries matching a regex, often during incidents.

## 2021-03-12

- [Capturing Every Change From Shopify’s Sharded Monolith](https://swe.quest/articles/capturing-every-change-from-shopify-s-sharded-monolith-fd5db9b13b97ba9a.md): Shopify Engineering · 2021-03-12 · Medium · 23 min read · Event-driven architecture, Data pipelines, MySQL, Queues & messaging, Analytics & OLAP
  Shopify is replacing Longboat, its query-based change-data capture tool that polls MySQL replicas on an updated\_at column, with a log-based CDC platform built on Debezium, Kafka Connect and Kafka that reads the binlog from 100+ MySQL shards.

## 2018-06-20

- [MySQL High Availability at GitHub](https://swe.quest/articles/mysql-high-availability-at-github-eab0c6a4cc5f7bdc.md): GitHub Engineering · 2018-06-20 · Medium · 15 min read · MySQL, Replication, Load balancing, Consensus, Resilience
  GitHub replaced VIP- and DNS-based MySQL primary discovery with a decoupled pipeline: orchestrator/raft detects failures and promotes a new primary, each orchestrator node writes the new identity to its local Consul KV store, and consul-template reconfigures GLB/HAProxy writer pools reached via anycast.

Same list as RSS: [https://swe.quest/feed.xml?tag=mysql](https://swe.quest/feed.xml?tag=mysql). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
