-
Notifications
You must be signed in to change notification settings - Fork 40
Poor insert performance #14
Comments
👍 I have the same problem performance are very poor !!! |
Thank you for reporting this, we are instigating the problem... |
Any news on this one? |
Effectively, we have always the same problem. |
We improve performance in our version of the plugin by specifying a few SQLite pragma options: PRAGMA temp_store=MEMORY;
PRAGMA synchronous=OFF;
PRAGMA page_size=4096; |
Thank you very much we will test this and we will get back to you. |
Used EionRobb's approach. Worked like a charm... |
How do you execute the pragma statements ? I execute them from my js file just after opening the db. Do you have any insight ? |
If you use the EionRobb's version of the plugin it is already setup by default for you. |
ok, i modified the ConnectToDb method in SQLiteProxy.cs like this : https://gist.github.com/remk/0e4a6f20cf8aa2f3febe The perfomances are definitely better but not stellar. |
I tried EionRobb's plugin without success. I think it's because our project target the cordova 'windows' platform and not the 'wp8' one. For the msopentech plugin maintainers: would it be possible to replace the c#sqlite database with the original one ? |
+1 @sgrebnov What is the strategy from microsoft ? If we want have good crosspatform application on windows we must have a good SQLite plugin no ? |
@remk i am using it on 'windows' platform using cordova and not 'wp8'. Would be glad to help you on setting it up. |
@lpessoa Thanks that's nice of you.
What have i done wrong ? |
@remk that is basically it.. the only difference is that i've changed the destructors in the header files to virtual and not private. What kind of errors are u getting? |
@lpessoa in the websql.js l have this error: at this line : it seems like the js code couldn't interact with the cpp interface. Did i miss something ? additionally i can build sqlite in debug mode but in release mode , i have this error : |
Hi guys, thank you a lot for investigating this issue - I've just pushed a fix based on additional PRAGMA options. |
@sgrebnov
I suggest you remove both of those dangerous pragma options |
updated, thank you @EionRobb |
Hi guys we created an async version of this plugin, which addresses a lot of performance issues. Please take a look at the repo |
I still have this issue. It's so bad that a process that takes 10 seconds in Android and iOS takes several minutes on WP8. |
@ISYSMichael Try this plugin, its async and performs better. |
That only seems to be for Windows, not WP8. Going by the plugin.xml. |
@ISYSMichael Windows is the "new" universal app project. This includes both Windows and Windows Phone. |
We use this plugin on windows phone 8.1 (js project, non silverlight). The insert performance are poor (more than 10 times slower than on android (using native websql ) and ios ( using brodysoft plugin )).
Our database consists of a key/value store where the value is a Json blob.
It takes 40 second to save 700 record on a nokia 925. Grouping them by transaction of 100 record.
By transaction of 10 elements it take 65seconds. And by transaction of 400 it take less than 20 second but the db keep using all the cpu ressource after the success callback of the last transaction is called. Making other io failed (ajax queries).
I've tried grouping the insert using INSERT ... SELECT ... UNION ALL SELECT ...
without much improvement.
During this whole time the ui is frozen.
Is there some way to improve insert performance ?
by configuration maybe ? can we tune the sqlitedb with this plugin ?
Is this plugin is useable into webworkers to a least keep the ui responsive (i tried without success) ?
Thanks
The text was updated successfully, but these errors were encountered: