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