Skip to content

Commit

Permalink
Elaborate on CALL IN TRANSACTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsceberg committed Feb 20, 2024
1 parent e151f00 commit 6750928
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/ROOT/pages/genai-integrations.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ CALL {
CALL db.create.setNodeVectorProperty(nodes[batchStart + index], "embedding", vector)
} IN TRANSACTIONS OF 1 ROW
----
You can control how many batches are committed by each inner transaction by modifying the `OF 1 ROW` clause.
For example, `OF 10 ROWS` will only commit once per 10 transactions. Because vector embeddings can be very large,
this may require significantly more memory.
====

[[ai-providers]]
Expand Down

0 comments on commit 6750928

Please sign in to comment.