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
I have a customer who is interested in the new Cordova SQLite plugin design discussed in #3, with additional access possible from a custom native plugin, but we are facing a couple of hurdles at this point:
Using multiple connections to the same database is known to cause blocking between writer and one or more readers. (No blocking issues expected in case of multiple readers with no writers.) This seems to be an issue on both Android and iOS.
I think the easiest solution for hurdle 1 (reader/writer blocking) would be to switch to using WAL mode, which I have started to evaluate in #7. I think the major disadvantage would be in the automatic or manual checkpointing that would likely be needed from time to time.
The alternative would be to implement some kind of transaction queueing for both Cordova JavaScript and custom native access, with some kind of a new asynchronous API likely needed for the custom native plugin. In case this kind of transaction queueing is needed, I would like to do this in one or more higher-level components outside of the redesigned plugin.
Ideas for Hurdle 2
I would need to evaluate how it would be possible to have both the new Cordova plugin and some form of "sqlite-android" share the same SQLite build. I would likely need several days to evaluate this kind of an idea. I would like to keep the higher-level "sqlite-android" library in a separate component, if possible.
I have a customer who is interested in the new Cordova SQLite plugin design discussed in #3, with additional access possible from a custom native plugin, but we are facing a couple of hurdles at this point:
The text was updated successfully, but these errors were encountered: