You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A client reported failures when testing with multiple readers running in parallel with a writer due to database locking. The solution is to fix the CoffeeScript/JavaScript to manage queue locking between the main database handle (with write access) and the parallel readers with a similar state-based locking style as described in https://www.sqlite.org/lockingv3.html.
Alternative may be to use WAL. Pitfalls of WAL discussed in storesafe/cordova-sqlite-storage-help#10. I wonder if WAL may be less vulnerable to database corruption due to its more sequential nature, for further investigation.
The text was updated successfully, but these errors were encountered:
I was thinking that WAL may be more robust against possible database corruption and found a couple threads that confirm WAL may be more reliable, at least in certain cases:
A client reported failures when testing with multiple readers running in parallel with a writer due to database locking. The solution is to fix the CoffeeScript/JavaScript to manage queue locking between the main database handle (with write access) and the parallel readers with a similar state-based locking style as described in https://www.sqlite.org/lockingv3.html.
Alternative may be to use WAL. Pitfalls of WAL discussed in storesafe/cordova-sqlite-storage-help#10. I wonder if WAL may be less vulnerable to database corruption due to its more sequential nature, for further investigation.
The text was updated successfully, but these errors were encountered: