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.
我只是想确保我得到这个......为了获得正确的“耐用性”因素,我需要做的就是确保在集合上提供或全局设置“等待同步”选项,我100% 保证写入在磁盘上,数据“立即同步”正确(减去关于 O/S 对我们撒谎的部分)?
对于每个集合,您可以将“wairForSync”设置为“true”或“false”。如果将其设置为“true”,则调用保存、更新或删除该集合中的文档将等到操作系统报告更改已写入磁盘。正如您所写,操作系统或硬盘可能在撒谎。
如果在“保存”、“替换”等调用中将“waitForSync”设置为“true”,情况也是如此。
每个块都有一个校验和。如果服务器在 ArangoDB 写入文档时崩溃,它将在启动时检查写入是否成功。