You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mobile-c...@googlegroups.com
I've got an experimental solution to the problem of database-busy errors/warnings in Couchbase Lite on iOS/Mac. It uses an in-memory lock to coordinate access to the database between threads, instead of SQLite's default behavior of using file locking. It works for me in unit tests, but I'd like for some people to try it out in real apps that have had database-busy problems.
It's currently checked in on the feature/sqlite_locking branch. There are no API changes nor anything you need to do differently. There should just be less contention between multiple threads accessing the database (including the replicator and LiveQueries.) Please let me know whether it helps, or if you run into any problems.
—Jens
Mark
unread,
Sep 16, 2014, 7:54:09 PM9/16/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mobile-c...@googlegroups.com
Hi Jens,
I tested this on my test app. It solves all of the contention issues I had under the most load my system can drum up, including replication in and out, live queries, and sub-second document/model creation and insert. I haven't run a full test suite, but initial results look good. Thanks!