nolanlawson / cordova-plugin-sqlite-2

Native SQLite database API for Cordova/PhoneGap/Ionic, modeled after WebSQL (UNMAINTAINED)
https://nolanlawson.com/2016/04/10/introducing-the-cordova-sqlite-plugin-2/
Apache License 2.0
168 stars 28 forks source link

WebSQL threw an error Error #67

Closed ganeshmogare closed 6 years ago

ganeshmogare commented 6 years ago

Issue Hello , When i sync data from couchdb to pouchdb , first time it will work fine , but when close the app and relaunch , app will throw the following error

WebSQL threw an error Error: Failed to allocate a 56000520 byte allocation with 25165824 free bytes and 49MB until OOM, max allowed footprint 174396912, growth limit 201326592

Please note thet i'm using cordova-plugin-sqlite-2

Info Environment: Nodejs/Angularjs Platform:Cordova Android Adapter: pouchdb-adapter-cordova-sqlite Server: CouchDB Plugin : cordova-plugin-sqlite-2

nolanlawson commented 6 years ago

Is this on Android or iOS? Either way, it seems this could probably be fixed by changing the batch size in PouchDB/CouchDB. If your documents are very large then it could cause OOM (Out Of Memory) errors.

Please reopen if I diagnosed incorrectly, thanks for reporting.

nolanlawson commented 6 years ago

seems to be a duplicate of https://github.com/nolanlawson/cordova-plugin-sqlite-2/issues/45#issuecomment-422217387