My Android app has a Sqlite database. The database is accessed by both the main app process and the sync process. Periodically, one of these processes can lock the other out. All the solutions I've seen to provide multiple database connections involve multiple threads but are within the same process.
This feels like it should be a common problem but I've seen little to nothing written on it, which makes me wonder if the general pattern I've applied is fundamentally wrong.
What's the correct way to deal with this?
Aucun commentaire:
Enregistrer un commentaire