|
|
|
|
|
by philipkimmey
4838 days ago
|
|
Rows, not columns. But more so than really large tables, I find MySQL will tip over even on smaller tables, not very hot tables, if I want to do the work without downtime. (It may well just be my environment, but it is fairly standard RDS on AWS.) |
|
Percona has pt-online-schema-change [1] but I have no experience with it or if it works on RDS.
There are other solutions. The most simple is doing the table rewrite yourself (but risking losing data). The more complex is to have a buffer/queue that can hold requests until the migration completes but this only works in certain specialized situations.
I'd love to find a better solution to migrations in MySQL. I've had migrations take 15 minutes on a relatively small table (2M rows). I'm a little scared to try pt-online-schema-change for fear of corrupting the db.
I would switch to PostgreSQL (nothing but love for that database from me) but the ORM I'm using has issues with identifier quoting and I can't use my "user" table with it.
1: http://www.percona.com/doc/percona-toolkit/2.1/pt-online-sch...