This commit is contained in:
kluufger authored and GitHub committed 2018-04-23 11:51:16 +00:00
1 parent 4804f78042
commit 16513dc387
1 file changed
+1 -1
+1 -1
View File
@@ -147,7 +147,7 @@ I'd like to compare GRDB's handling of concurrency with other libraries. To be a
The more threats are handled by the application, the more skilled and careful a developer has to be in order to avoid them.
- **Concurrent writes**: Two threads want to write in the database as the same time. SQLite does not allow that.
- **Concurrent writes**: Two threads want to write in the database at the same time. SQLite does not allow that.
- **Isolation troubles**: As two database queries run one after the other, a concurrent thread sneaks in and modifies the database in between. The two queries can thus perform inconsistent fetches or updates, unless they are properly isolated. Lack of isolation may display funny values on the screen, trigger a relational constraint error, or silently corrupt the database content.
- **Conflicts**: The same piece of data is both edited by the application user, and refreshed from a network operation. What will eventually be stored in the database? Can any conflict be noticed?
- **Blocked UI**: Can it happen that the UI is blocked because the main thread has to wait for a background thread to release a lock on the database?