#0307 · 方法
数据库迁移要过三关
评审这个迁移脚本,回答三件事:能否反向执行并恢复原状;在 [数据量] 行的表上执行会不会长时间锁表;和正在运行的旧版本代码能否共存。任何一项不过,给出拆分步骤的方案。
[迁移脚本]
Review this migration on three counts: can it be reversed cleanly; will it hold a long lock on a table of [row count] rows; can it coexist with the old code still running. If any fails, propose how to split it into steps.
[migration]
小杜
已贴 1,040 张上墙共收到 0 个章