This topic created in 4492 days ago, the information mentioned may be changed or developed.
现有一个文本文件,5G,一条记录一行,总共两千多万条
每条记录都有固定格式。
有什么方法能快速导入?
用python一条一条插入,感觉效率很低。
8 replies • 2014-07-23 07:01:47 +08:00
 |
|
p2pJul 22, 2014 1
1
The LOAD DATA INFILE statement reads rows from a text file into a table at a very high speed.
|
 |
|
LOAD DATA INFILE
|
 |
|
那么大的文件...
|
 |
|
SevnxJul 22, 2014 via Android
4
|
 |
|
如果是我,我会把 大文件记录----》生成 SQL 语句 ------》 source
不知道会不会快一点?
|
 |
|
SevnxJul 22, 2014 via Android
7
刚跑完。就一楼那个指令。跑到现在了 。也不是很快。。 @ dekinr
|
 |
|
batch load/batch write
|