-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WAL pitfalls #10
Comments
@brodybits What is the current status on WAL? Is it still disabled by default for the cordova-sqlite-** plugins, or is it necessary to disable it manually? I have a weird issue on iOS with https://github.com/litehelpers/Cordova-sqlite-evcore-extbuild-free where the database gets emptied from time to time, but unfortunately I can't reproduce it yet, so I'm trying to ensure that I am not running into any pitfall I'm not aware of. |
WAL is not be enabled on any platforms. Test at litehelpers / Cordova-sqlite-storage / spec / www / spec / sqlite-version-test.js#L126-L144 shows It should be no problem to change using a PRAGMA statement, though I have not tested this.
Links expanded to:
This plugin does not deal with iOS CoreData. For the next major release (storesafe/cordova-sqlite-storage#687) I would like to update the plugin to explicitly set |
More troubles with WAL at: http://sqlite.1065341.n5.nabble.com/Atomic-DELETE-index-optimisation-td99277.html |
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: |
Adding the following Q&A that I initiated on the SQLite forum for reference (with a single response which I think has no new information): |
Here is an interesting, positive case for WAL on the server side, at least: https://medium.com/@rbranson/sharing-sqlite-databases-across-containers-is-surprisingly-brilliant-bacb8d753054 ref: http://sqlite.1065341.n5.nabble.com/Sharing-an-SQLite-database-across-containers-tc110391.html |
I just found a couple more resources today:
|
includes a description of how to use a PRAGMA for manual checkpointing - definitely looks like a drawback to me |
As I said in storesafe/cordova-sqlite-storage#643 (comment):
The text was updated successfully, but these errors were encountered: