Skip to content

whether batch insertion avaliable? #61

Answered by pdpotter
jq679 asked this question in Q&A
Discussion options

You must be logged in to vote

When working directly in SQL, it can be more convenient to use prepared statements. I haven't found a way to actually create multiple nodes or edges in one query though. An exemple of using prepared statements can be found in the tests: https://github.com/apache/incubator-age/blob/7ba89b01c8e249ae2df77854698fc87eec90dabb/regress/expected/cypher_create.out#L457-L468

When working on code connecting to the database, some libraries provide functions to execute the same statement with multiple values, examples: asyncpg (Python), node-postgress (not tested) (Node.js)

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jq679
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants