ONgDB大批量数据导入实现方案

 

Here’s the table of contents:

  1. 大批量数据导入测试
  2. 导入命令

大批量数据导入测试

csv导入与停库导入 大批量数据导入说明

  • 数据导入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