litehelpers / cordova-sqlite-evmax-ext-workers-legacy-build-free

Other
5 stars 0 forks source link

INCORRECT WORKAROUND for cordova-sqlite-storage BUG 666 in this plugin version #7

Open brodycj opened 6 years ago

brodycj commented 6 years ago

INCORRECT WORKAROUND (apply ROLLBACK when opening database in a new web page) for litehelpers/Cordova-sqlite-storage#666 is included by this plugin version due to possible timing issue.

New workaround solution to litehelpers/Cordova-sqlite-storage#666 is to attempt to close database before opening. Unfortunately this new workaround solution may be problematic in case the same native database handle is accessed from a combination of main and worker threads.

Probably the best solution would be parallel database access handles as discussed in https://github.com/litehelpers/cordova-sqlite-evmax-ext-workers-legacy-build-free/issues/3#issuecomment-358793807.