Research Article

Analysis of Traffic Accident Based on Knowledge Graph

Table 4

Comparison of methods for importing data in batches into Neo4j.

MethodsRunning speedAdvantageDisadvantageScope of application

CREATESlow (1 k nodes/s)The statement is simple, easy to use and understand and can realize the real-time insertion of new dataSlow speed1 − 1 w nodes
LOAD CSVGeneral (5 k nodes/s)In addition to the advantages described in the CREATE, you can load not only local CSV, but also remote CSVThe data must be converted to CSV1 w − 10 w nodes
Neo4j importFast (tens of thousands of nodes/s)The data import speed is fast and the running time is shortNeo4j must be disabled during the import process; you cannot reimport new data using import in an established databaseOver ten million nodes