People using OpenStack Trove instances can hit a common issue in the MySQL world: how to perform schema change operations while minimizing the impact on the database server? Let’s explore the options that can allow online schema changes.
Summary
With MySQL 5.5, pt-online-schema-change
from Percona
Toolkit is your best option for large tables while regular
ALTER TABLE
statements are only acceptable for small
tables. Also beware of metadata locks.
With MySQL 5.6, almost all types of schema changes can be done
online. Metadata locks can also be an issue.
pt-online-schema-change
can still be worth using as
it is also online on read replicas.
Regular ALTER TABLE with MySQL 5.5
If you are still using MySQL 5.5, almost all schema changes will require a table …
[Read more]