mysql 中一个将近 1 亿行的表,要增加一个字段会很慢吗?

2015-11-24 10:15:04 +08:00
 hostigation
2573 次点击
所在节点    程序员
3 条回复
triffic
2015-11-24 11:15:44 +08:00
这个字段是索引的一部分吗
SoloCompany
2015-11-25 03:05:24 +08:00
https://mariadb.com/kb/en/mariadb/alter-table/

When does ALTER TABLE copy all data?

Here is a list of the actions that can be performed without having to copy the table: ...
显然,增加新的列不在这个列表内
SmiteChow
2015-11-25 10:12:01 +08:00
无论慢不慢,请先备份

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/238424

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX