Settings

Theme

Ask HN: Is this a good design to store history of a graph in graph databases?

7 points by m33k44 3 years ago · 1 comment · 1 min read


Say, I have following relation:

    (node A.uuid) -- [relation AB.uuid] --> (node B.uuid)
And I store history of a node, say `node A`, as follows:

    (node A.uuid) -- [has:{datetime,session}] --> (node A.history)
    (node A.history) -- [contains:{datetime, session, relation AB.x.uuid, to:node B.y.uuid}] --> (node A.n.uuid)
    :
    :
    (node A.history) -- [contains:{datetime, session, relation AB.p.uuid, to:node B.q.uuid}] --> (node A.0.uuid)
Is this a good approach to store history of a node in a graph database? What are the better ways to do this?

Also, how do I store the history of the relation/edge `relation AB`? Is it same as the node?

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection