orders MySQL shards → one Postgres, reconciliation gate 99.999%
Orders ran on four MySQL shards, split by an old tenancy scheme that made cross-shard queries painful and reporting worse. This change collapses all four into a single Postgres database with row-level tenancy replacing the physical shard boundary.
Because this is orders data under SOX scrutiny, the cutover is gated the same way checkout is: a reconciliation job has to match the new Postgres data against the four legacy shards at 99.999% before anything reads from the new database in production. This is the same rigor as the parity harness, applied to data migration instead of live traffic.
Reporting queries that used to need four separate connections and an application-level join now run as a single query. That's the actual payoff here, even though the SOX gate is the part that takes the longest.