Optimizing MySQL for ALTER TABLE of InnoDB

前端 未结 6 942
臣服心动
臣服心动 2020-12-01 05:39

Sometime soon we will need to make schema changes to our production database. We need to minimize downtime for this effort, however, the ALTER TABLE statements are going to

6条回答
  •  天涯浪人
    2020-12-01 06:06

    I really don't know how to optimize that, but it's usually a good practice to put the site in offline mode before doing such updates.

    Then, you can run your DB scripts at, say, 3 am, so it shouldn't matter much if downtime's a big longer than ideal.

提交回复
热议问题