How to ensure a safe file sync with sqlite and NFS

跟風遠走 提交于 2019-12-06 01:38:54

SQLite NFS issues are due to broken caching and locking. If your process is the only one accessing the file on NFS then you'll be ok.

The SQLite backup API was designed to solve exactly your problem. You can either backup directly to the NFS database or to another local temp file and then copy that. The backup API deals with all the locking and concurrency issues.

You can use APSW to get access to the backup API or the most recent version of pysqlite. (Disclosure: I am the APSW author.)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!