jeudi 30 avril 2015

Ensuring safe SQLite database manipulation (not referring to thread safe)

I have an app that inserts and or updates multiple (100's) of rows into a table. There's only one thread running at a time in my app. Each row is being calculated and checked before each insert/update in several functions.

I'm concerned that if the app gets interrupted between the start of inserting the rows and the end my data will be corrupted/incomplete. Is this possible to happen?

I tried several times to interrupt the process with the home key, it didn't but this is not exhaustive approach.

Aucun commentaire:

Enregistrer un commentaire