When graph consistency will be implemented in ArangoDB java driver?

霸气de小男生 提交于 2019-12-25 03:38:34

问题


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:

  1. When graph consistency will be implemented in ArangoDB java driver and edges will be deleted automatically by AQL when vertices are deleted?

  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!