Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

SQLite Updates are 10 times slower on Android than iOS

$
0
0

Being somewhat new to SQLite and Xamarin I am not sure of why two different platform have two drastically different performances. In our app when a user logs in for the first time we need to sync a potentially large amount of data. To help with this we paralleled the sync process using asynchronous tasks (Task.WaitAll). We wrap these Wait All methods in a transaction and use a single connection through a data access layer. In iOS the whole process takes less than 2 seconds but in Android it takes between 20 - 30 seconds.

Has anyone had any issues like this using the SQLite.Net library? Is there any specific flags I need to set for Android?

If I try to use async transaction for each of the specific sync types that are being run in parallel then I get a SQLiteException: Busy error.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>