Here’s the table of contents:
大批量数据导入测试
- 数据导入DEMO(创建三个表)
- movies.csv
movie:ID,name,:LABEL tt0133093,The Matrix,movie tt0234215,The Matrix Reloaded,movie tt0242653,The Matrix Revolutions,movie
- actors.csv
person:ID,name,:LABEL keanu,Keanu Reeves,person laurence,Laurence Fishburne,person carrieanne,Carrie-Anne Moss,person
- roles.csv
:START_ID,role,:END_ID keanu,Neo,tt0133093 keanu,Neo,tt0234215 keanu,Neo,tt0242653 laurence,Morpheus,tt0133093 laurence,Morpheus,tt0234215 laurence,Morpheus,tt0242653 carrieanne,Trinity,tt0133093
导入命令
.\bin\neo4j-import --into data\databases\graph.db --nodes .\import\practice\actors.csv --nodes .\import\practice\movies.csv --relationships:ACTED_IN .\import\practice\roles.csv --skip-duplicate-nodes=true --skip-bad-relationships=true --stacktrace --bad-tolerance=500000 .\bin\neo4j-admin import --database=graph.db --nodes .\import\practice\actors.csv --nodes .\import\practice\movies.csv --relationships:ACTED_IN .\import\practice\roles.csv
PREVIOUSONgDB使用apoc提交后台cypher任务
NEXTONgDB新建用户与修改密码