On Feb 27, 2014, at 9:45 AM, Frederic Yesid Peña Sánchez 
<[email protected]> wrote:

> We are noticing frequent issues, when the app is open but idle (no user 
> interaction), the replication starts and our logs show a lot of Database Busy 
> messages.

Those messages mean you're using CBL objects on multiple threads. Don't do 
that! The API is not thread-safe and you're likely to crash.

> It's possible to enqueue all CBLLiveQuery and replication on the same serial 
> dispatch queue??

Yes, but you have to first set the CBLManager's dispatchQueue property to the 
queue you want to use it on, and then all access to the objects has to be from 
that queue.

There are instructions about concurrent access in the docs.

--Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/1664E785-FA7F-435F-ADF0-3D9EFFFB0B68%40couchbase.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to