-
Hi! I saw in the documentation that the GRAPH.BULK command was only allowed for importing data into a new graph. Would it be possible in the future to allow import into an existing one? If not, would it be possible, for instance, to bulk import into a new graph and "stitch" that new graph to the main graph? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hey, |
Beta Was this translation helpful? Give feedback.
-
The advantages of using When introducing a large set of modifications to the graph e.g. inserting new nodes/edges or updating a large portion of the graph in the form of queries, it really depends on the ability to express the change in a compact query For example, suppose we want to increase the value of the MATCH (u:User) SET u.score = u.score + 1 In such cases a single compact query is quite optimal, note it might take awhile to execute and memory consumption can spike. On the other hand if the change can't be expressed in a compact form, I'll suggest breaking the change-set into a number of "batched" queries utilizing query parameters. e.g. CYPHER USER_ID_SET [1,2, 12, 52, 98, 102] MATCH (u:User) WHERE u.id in $USER_ID_SET SET u.score = u.score + 1 I hope this helps. |
Beta Was this translation helpful? Give feedback.
The advantages of using
bulk-insert
is mainly to avoid query processing, the data is laid out in an optimal form for ingestion.When introducing a large set of modifications to the graph e.g. inserting new nodes/edges or updating a large portion of the graph in the form of queries, it really depends on the ability to express the change in a compact query
For example, suppose we want to increase the value of the
score
attribute of all nodes of typeUser
in the graph by some constant, this can be easily expressed via the following query:In such cases a single compact query is quite optimal, note it might take awhile to execute and memory consumption…