creating many records in a single query #849
killJoy-03
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an API that does multiple tasks in multiple threads. (In a single transaction)
Suppose in a task, it is creating 6000 records in a single query
Format is like
MATCH (a:A)
/// 6000 subqueries for creating
NOTE : And we are consuming all the executed queries even though we do not need them, for immediate commit.
Now, for the above query, it throws Out of Memory Exception. some heap was out of memory.
How do you tackle this.
I solution I can do is run in batches.
Any thing else?
Beta Was this translation helpful? Give feedback.
All reactions