[SQL] Best way to create a vertex and a multitudes of edges (coming out of this newly created vertex) #1817
ExtReMLapin
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
-
Hello,
As we're migrating some of our Cypher queries to SQL, I lack the experience with ArcadeDB SQL;
From my understanding, SQLScript is a good way to reduce overhead caused by a crazy amount of small REST API Calls.
The same way we can use UNWIND with Cypher, we can use it with SQL but we can also use scripts.
The idea is that we create a vertex and it will already have relations/edges.
What we did before with cypher is creating it the Vertex/Node with one query, and all the relations in a batch_request, we ported this code to SQL and it works great so far.
Now, what if we want to -in the same request- create the vertex/node and edges coming out of this vertex ?
The destination vertex can be created in the same query or already exist.
Is it the best way to do ?
The very first line will be omited in the final code,
CREATE EDGE TYPE
will not be, as it's a LLM that decides the edges names.Beta Was this translation helpful? Give feedback.
All reactions