问题
Some time ago I asked about deleting vertices with associated edges. The answer was that the edges don't deleted automatically by AQL when vertices are deleted.
I use Arango java driver for working with ArangoDB.
My questions are:
When graph consistency will be implemented in ArangoDB java driver and edges will be deleted automatically by AQL when vertices are deleted?
Is it planned?
Thank you in advance!
回答1:
I received the answer directly from ArangoDB contributors and they said that in v 3.4 the removing vertex through the graph leads to automatically remove the associated edges.
To automatically delete an edge when a vertex gets deleted, you have to use:
named graphs
AND
the graphAPI in the java driver https://docs.arangodb.com/3.4/Drivers/Java/Reference/Graph/#graph-api
回答2:
Arango ensures consistency for named graphs. Here is the documentation that describes named graphs and the difference with unnamed (anonymous) graphs. You can create named graphs directly in the graph section of the Arango gui
https://docs.arangodb.com/3.3/Manual/Graphs/
来源:https://stackoverflow.com/questions/52594221/when-graph-consistency-will-be-implemented-in-arangodb-java-driver