|
|
|
|
|
by fjordan
3616 days ago
|
|
Tools such as the percona toolkit (https://www.percona.com/software/mysql-tools/percona-toolkit) provide the ability to perform safe and performant online alters for MySQL. Behind the scenes it actually creates a new table with the new schema and utilizes triggers to apply writes to the new table as the original data is being copied. Once it completes the table is renamed and the triggers are removed. Percona also recommends using this tool to safely perform alters for any Galera-based replication product (Percona XtraDB Cluster, MariaDB Galera Cluster, etc.) |
|
It only failed catastrophically, causing a critical production incident, twice.
Each time took dozens of engineer hours to vet in advance, thus costing thousands of dollars.
Online DDL changes and indexing with pg cost us... basically nothing, and never caused downtime.
My and Pg each have their place... but if you want to modify large tables, MySQL is almost certainly the wrong tool for the job.