1
hellojinjie Oct 8, 2015
还不如先 select into outile
然后重建表 然后再 insert into from file |
2
kslr Oct 8, 2015 via Android
几个小时,如果列不是很多的话
|
3
nowcoder Oct 8, 2015
20 分钟左右
|
4
msg7086 Oct 9, 2015
@hellojinjie alter table 就是这个过程,而且少个序列化。
|
5
hellojinjie Oct 9, 2015
@msg7086 直接 alter 应该还有锁表这一个过程,还有包括事务、日志相关的操作,所以应该会更耗时一些。如果直接 alter ,也有可能会报缓存不足的错误的。
|
6
msg7086 Oct 9, 2015
@hellojinjie 没记错的话应该是先做 copy to temp table 然后再重做索引。不太清楚你说的那几个。
|