Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 LevelDB 的新手。我需要“回滚到特定状态”之类的东西,LevelDB 支持吗?经过一番搜索,我知道 LevelDB 不支持事务,但它支持快照。我可以将我的数据库恢复到快照吗?
我的需求是这样的:
LevelDB 快照不是为了恢复更改,而是允许来自同一线程的其他读者访问数据库的一致版本。
解决您的要求的一种方法是自己实现事务日志: