Saving nodes and relationship history in a graph database

I am trying to implement a solution using Graph DB with nodes and relationships. There is a requirement when a user may want to run reports (queries) on historical data for a node or check historical relationships.

Are graphical DBs supported with these functions out of the box? or, if any alternative mechanism could be implemented to preserve historical audit logging for changes to node / relationships in a DB graph?

Some ideas we can consider ...?

+6
source share
1 answer

You can use transaction event listeners to create historical copies of nodes and relationships, as they are updates.

If you only have tree structures on the graph, I recommend that you look at persistent data structures with sparse copying and structural separation.

For Neo4j there is a Github example project with a version.

+2
source

Source: https://habr.com/ru/post/922122/


All Articles