How to set the unique constraints on edge #3337
-
I have a query that creates the edge with label 'License' between two vertexes 'User1' and 'Content1' if it does not exist. We have few instances of our service and this query can be executed in paralell in scope of different operations. As a result we will receive few same 'License' edges between 'User1' and 'Content1'. As we understand to do that we need to change label multiplicity from default 'MULTI' to 'SINGLE'. If so, we need to understand the impact on existing queries and data:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please check: Regarding your questions:
|
Beta Was this translation helpful? Give feedback.
Please check:
https://docs.janusgraph.org/advanced-topics/eventual-consistency/ in particular ConsistencyModifier.LOCK
https://docs.janusgraph.org/advanced-topics/eventual-consistency/#data-consistency-without-locks
Regarding your questions:
https://lists.lfaidata.foundation/g/janusgraph-users/topic/79936756#3847