1
lihongjie0209 2018-08-08 11:34:22 +08:00
导出 csv, 再导入 sqlite?
|
2
sdushn OP @lihongjie0209 正在用这个方法😂数据量大,导入太慢了
|
3
lihongjie0209 2018-08-08 11:57:13 +08:00 1
Situations Where A Client/Server RDBMS May Work Better
High Concurrency SQLite supports an unlimited number of simultaneous readers, but it will only allow one writer at any instant in time. For many situations, this is not a problem. Writer queue up. Each application does its database work quickly and moves on, and no lock lasts for more than a few dozen milliseconds. But there are some applications that require more concurrency, and those applications may need to seek a different solution. 看起来不支持并行写入, 不管什么工具都没办法提速吧 |
4
sdushn OP @lihongjie0209 是啊,似乎是不能提速的,比较尴尬啊
|
5
LightLolo 2018-08-08 13:53:20 +08:00 1
只是数据抽取的话,试试数据抽取工具么? KETTLE 这种。
|
6
jydeng 2018-08-08 14:16:01 +08:00 1
LS+1
|
7
rockyou12 2018-08-08 14:19:23 +08:00
其实我很好奇既然数据量很大,为什么还要换成 sqlite 这种单文件的数据库(‘◇’)?
|
8
lihongjie0209 2018-08-08 14:29:51 +08:00
@LightLolo #5 数据库不支持并行写入的话, 使用其他工具也没办法
|
9
sdushn OP |
10
sdushn OP 最后采用了最笨的办法,导出后再导入,弄完之后自己有写了 java 小脚本,两边数据库连起来,一边读,一边写就好了
|