简体   繁体   English

是否可以配置ArangoDB在特定时间制作图数据库的快照?

[英]Is it possible to configure ArangoDB to make snapshots of the graph database at specific times?

so far I know ArangoDB uses MVCC and therefore it creates revisions of nodes and edges for a undefined period of time until the garbage collector removes them. 到目前为止,我知道ArangoDB使用MVCC,因此它会在未定义的时间段内创建节点和边缘的修订版,直到垃圾收集器将其删除。

I would like to implement a graph database schema and I need to keep the state of this database at specific times. 我想实现一个图形数据库模式,我需要在特定时间保持该数据库的状态。 This means I will configures times when the database management system take a snapshot of the state (eg every week). 这意味着我将配置数据库管理系统拍摄状态快照的时间(例如,每周)。

So my question in short: is it possible to keep the revisions/versions of nodes/edges in arangodb (or maybe with a plugin) and a timestamp of their creation? 简而言之,我的问题是:是否有可能将节点/边缘的修订/版本保存在arangodb(或者可能带有插件)和创建的时间戳中?

If no, is there a other graph databases which is able to do this? 如果不是,是否有其他图表数据库可以执行此操作?

I think you can use arangodump ( link to ArangoDB client tools manual ) binary to create a snapshot at the desired point in time. 我认为您可以使用arangodump( 链接到ArangoDB客户端工具手册 )二进制文件在所需的时间点创建快照。 This will save the state of the database (or just the specific collections that contain your graph data) to JSON files, which can be used for auditing or later reloading the data. 这将把数据库的状态(或仅包含图形数据的特定集合)保存到JSON文件,这些文件可用于审计或稍后重新加载数据。 arangodump is contained in the ArangoDB distributions. arangodump包含在ArangoDB发行版中。

The data dumped by arangodump will not contain any creation timestamps, but if you need them you can make them part of your data by just filling a "created" attribute in each node / edge when you create it. arangodump转储的数据不包含任何创建时间戳,但如果需要,可以在创建时在每个节点/边缘填充“created”属性,使它们成为数据的一部分。

I hope this helps. 我希望这有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM