Writing to SQLite dataset when other processes are reading from it

后端 未结 1 436
醉酒成梦
醉酒成梦 2021-01-26 11:30

Reading the SQLite documentation here, when a process wants to write to a SQLite database it obtains a reserved lock. Then once the process is ready to write to disk it obtains

1条回答
  •  离开以前
    2021-01-26 12:08

    SQLite does go through these steps, but it timed out while waiting for the remaining shared locks to clear.

    You can adjust this timeout with PRAGMA busy_timeout.

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