neo4j数据导入load csv
admin-import 或 neo4j-import
load csv适用场景:0 ~ 1000w
速度:一般 5000/s
优点:可以加载本地/远程CSV;可实时插入
缺点:导入速度较慢;需要将数据转换成csv
示例
node.csvb6b0ea842890425588d4d3cfb38139a9,"文烁"
5099c4f943d94fa1873165e3f6f3c2fb,"齐贺喜"
c83ed0ae9fb34baa956a42ecf99c8f6e,"李雄"
e62d1142937f4de994854fa1b3f0670a,"房玄龄"
脚本using periodic commit 10000 load csv from "file:/node.csv" as line create (:test {id:line[0], name:line[1]})
node.csvuuid,name,Label
b6b0ea842890425588d4d3cfb38139a9,"文烁",Label1
5099c4f943d94fa1873165e3f6f3c2fb,"齐贺喜",Label3
c83ed0ae9fb34baa956a42ecf99c8f6e,"李雄",Label2
e62d1142937f4de994854fa1b3f0670a,"房玄龄",Label
脚本using periodic commit 10000 load csv with headers from "file:/neo4j/node.csv" as line with line creat