---
title: "5 Billion Records, 10 Terabytes, Four Weeks: A Real Data Migration Playbook"
description: "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."
url: "https://swe.quest/articles/5-billion-records-10-terabytes-four-weeks-a-real-data-migration-playbook-ba6d0d87ec973dae"
canonical: "https://www.wix.engineering/post/5-billion-records-10-terabytes-four-weeks-a-real-data-migration-playbook"
source: "Wix Engineering"
published: "2026-09-02"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["schema-migrations","data-pipelines","messaging","mysql","testing"]
---

# 5 Billion Records, 10 Terabytes, Four Weeks: A Real Data Migration Playbook

A post on [Wix Engineering](https://swe.quest/sources/wix.md), published 2026-09-02, 9 min read, Case study. Original: [https://www.wix.engineering/post/5-billion-records-10-terabytes-four-weeks-a-real-data-migration-playbook](https://www.wix.engineering/post/5-billion-records-10-terabytes-four-weeks-a-real-data-migration-playbook)

## Summary

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. Profile the source database first with a read-only dry run to find corrupt legacy records. Find V1/V2 parity gaps early using E2E suites through the API proxy, LLM analysis of production traffic and shadow compare mode. Decide up front how CDC/Kafka handles a failing record: blocking retries, skip-and-log, or a dead letter queue. Size Kafka partitions and database capacity so eager migration outruns the incoming change rate; contacts needed 350 partitions for 100,000 RPM plus sharding a 14 TB single-master MySQL into eight shards.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Schema migrations](https://swe.quest/tags/schema-migrations.md) (Data & databases)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Queues & messaging](https://swe.quest/tags/messaging.md) (Backend & APIs)
- [MySQL](https://swe.quest/tags/mysql.md) (Data & databases)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)

## Prerequisites

- Change data capture
- Kafka partitions ([easy posts on Queues & messaging](https://swe.quest/tags/messaging.md?difficulty=easy))
- API proxy/shadow traffic

## Keywords

Kafka, CDC, MySQL, dead letter queue, compare mode, Wix

## Related posts

- [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.
- [How we migrated a live routing system using AI-assisted refactoring](https://swe.quest/articles/how-we-migrated-a-live-routing-system-using-ai-assisted-refactoring-db938ac15eae4cef.md): Datadog Engineering · 2026-06-23 · Medium · 13 min read · Refactoring & migrations, AI for coding, PostgreSQL, Schema migrations, Testing
  Datadog migrated Stream Router, the control plane that tells metrics producers and queriers which Kafka cluster, topic and partitions to use, from a FoundationDB key-value model to a relational schema.
- [Taking the fear out of migrations](https://swe.quest/articles/taking-the-fear-out-of-migrations-570a94639201ef71.md): incident.io · 2023-02-28 · Medium · 9 min read · Schema migrations, Databases, Deployment
  Data model migrations can be made low-risk with a four-step playbook: create the new model, dual-write to old and new (backfilling dependent and existing data with rerunnable jobs), read from both and alert on mismatches before switching reads behind a feature flag, then stop writing to and drop the old model. incident.io walks through the pattern using its move from hard-coded string incident statuses to a per-organisation incident\_statuses table.
- [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.
- [We stopped a Railway migration 3 weeks out. How to know to stop or go?](https://swe.quest/articles/we-stopped-a-railway-migration-3-weeks-out-how-to-know-to-stop-or-go-9f75dc172d45bc5c.md): Evil Martians · 2026-11-18 · Medium · 11 min read · Cloud platforms, Databases, SRE, Observability, Deployment
  Evil Martians called off a high-load Rails migration from Engine Yard to Railway three weeks before cutover because Railway's mid-transition hardware fleet made database import times unpredictable: the same MySQL dump took 71 minutes on a GCP burst VM, 97 on Gen 2 AMD EPYC Metal, and 382 on Gen 1 Intel Xeon Metal, so a 3-4 hour maintenance window could not be guaranteed.

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)
