On Apr 7, 2014, at 2:13 PM, Scott Ahten <[email protected]> wrote:
> To ensure the database is not accessed while the background thread is > working, I call stop on both pull and push replications beforehand and set > the main thread's reference to the database to nil immediately after. That's not necessary. It's OK for multiple threads to access the same database file -- SQLite takes care of that -- as long as each thread uses its own set of objects to do it. What you'll find is that the replicator will stop during the compaction, because they're on the same thread, and that database access from other threads may block for a while depending on how long the compact process's transactions take. --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/63D72069-7DBD-4707-B4D9-03ECB2A65AF2%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
