It is great to be able to build small utilities on top of an excellent RDBMS. Thank you MySQL.
This is a small but complex utility to perform online schema change for MySQL. We call it OSC and the source is here.
Some ALTER TABLE statements take too long form the perspective of some MySQL users. The fast index create feature for the InnoDB plugin in MySQL 5.1 makes this less of an issue but this can still take minutes to hours for a large table and for some MySQL deployments that is too long.
A workaround is to perform the change on a slave first and then promote the slave to be the new master. But this requires a slave located near the master. MySQL 5.0 added support for …
[Lire plus]