JanusGraph / JanusGraph/janusgraph

Does modifying an edge property delete the edge and create a new one?

Open
#934 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.8k
Forks
1.2k
Avg merge
13h 53m
Merged PRs (30d)
6

Description

I was reading through this [Stack Overflow post](https://stackoverflow.com/a/36544160/1704311), which states that modifying edges will delete them and create new ones with the updated properties instead. In cassandra, this would effectively lead to tombstones due to the deletion.

Your latest documentation however suggests in [29.1.1.1. Forking Edges](http://docs.janusgraph.org/latest/eventual-consistency.html), that this behaviour is only seen when edge labels use `ConsistencyModifier.FORK`.

Which is true? This is the first I've heard of this potential issue; My application is heavily modifying edges, thus I need to know if such an approach is even scaleable.

Also, if the documentation says:

> [...] would lead to conflict.

does that mean that the conflicting transaction would overwrite any results written by the previous one, or simply fail?

Contributor guide

Open the contributing guide

Research direction

Start with the linked Eventual Consistency documentation, especially “29.1.1.1. Forking Edges,” and compare its statements with the linked Stack Overflow answer. Determine which edge-modification and conflict behaviors are documented, then clarify whether conflicts overwrite results or fail and whether Cassandra tombstones are expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
cassandra, java
Domain
databases, documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.