Skip to content

Bulk insertion into existing graph #530

Closed Answered by swilly22
ahirel asked this question in Q&A
Discussion options

You must be logged in to vote

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 type User in the graph by some constant, this can be easily expressed via the following query:

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…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@ahirel
Comment options

@swilly22
Comment options

@ahirel
Comment options

Comment options

You must be logged in to vote
1 reply
@ahirel
Comment options

Answer selected by ahirel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants