Locking sqlite file on NFS filesystem possible?

前端 未结 1 1729
迷失自我
迷失自我 2020-12-06 17:26

Let\'s say there are two python scripts that want to write data to the same table which is stored in an SQLite file using the sqlite3 module. The SQLite-file is

相关标签:
1条回答
  • 2020-12-06 17:28

    Do not use SQLite with NFS. It is as simple as that. NFS semantics are different than regular filesystems and are looser. You will eventually get corruption. Every now and then someone on the SQLite-users mailing list posts with their "workarounds". They never work although they appear to in the short term.

    0 讨论(0)
提交回复
热议问题