-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Centralize batching documentation into single include file
- Loading branch information
Showing
2 changed files
with
24 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Since this operation can potentially affect a lot of data, running the change in a single transaction may be | ||
infeasible since the transaction would likely run either too slow, or even out of memory. | ||
|
||
To prevent this, `enableBatchImport` must be set to `true`. | ||
Since it relies on `CALL {} IN TRANSACTIONS` under the hood, the enclosing change set's `runInTransaction` must also be set to `false`. | ||
This results in the change being executed in batches. | ||
|
||
!!! warning | ||
This setting only works if the target Neo4j instance supports `CALL {} IN TRANSACTIONS` (version 4.4 and later). | ||
If not, the Neo4j plugin will run the change in a single, autocommit transaction. | ||
|
||
Make sure to read about [the consequences of changing `runInTransaction`](#change-sets-runintransaction). | ||
|
||
The `batchSize` attribute controls how many transactions run. | ||
If the attribute is not set, the batch size is defined on the Neo4j server side. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters