Asynchronous replication

16 views
Skip to first unread message

Endika Montejo

unread,
Feb 10, 2014, 6:27:11 AM2/10/14
to mobile-c...@googlegroups.com
Good afternoon,

I would like to ask you if I am working properly with replications.
My idea is to can start and stop the replication of Couchbase lite database with the one in the cloud in a asynchronous way (as there are already methods developed by CBL for this objective.

So this is the code I have having as CBLReplictaion pullReplication and pushReplication:

http://pastie.org/private/a35qxzxa8yba8rsuoeznq

    

The point is that the replication is done correctly, but I have observed that it's done quickly untill I get the following warning:

2014-02-10 12:17:39.530 xxxx[9100:501b] -[CBL_FMDatabase executeUpdate:error:withArgumentsInArray:orVAList:]:757 Database busy (/Users/xxxxx/Library/Application Support/xxxxxx/CouchbaseLite/uid_52f206f367842.cblite)

2014-02-10 12:17:39.530 xxx[9100:501b] Database busy

When this happens, the replication is stopped for a time. It can take the replication to resume maybe 1 minute or 2. Can I do something in order to wait less time.

For more information, I am moving moreless 35.000 documents with a total size of 25MB. 

Thanks a lot

Reply all
Reply to author
Forward
0 new messages