Sqlite WAL mode : how much time should I expect to be locked in WAL mode?

天涯浪子 提交于 2019-12-24 18:38:14

问题


I plan to use Sqlite with WAL mode (on a web server).

As I understand, the reads are never blocked with this mode, even when write occurs in the same time.

There is still only one write transaction at a time but I guess the lock time is short because the actual write on the db occurs only when the WAL file exceed a certain size.

So :

  • How much time should I expect to be locked in WAL mode when the transaction is written on the WAL file ? When the WAL file is commited ?

  • Is there any benchmarks out there testing that point ?

thanks.

来源:https://stackoverflow.com/questions/56865379/sqlite-wal-mode-how-much-time-should-i-expect-to-be-locked-in-wal-mode

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