> On Jan 22, 2015, at 8:56 PM, Jeff Kingyens <[email protected]> wrote:
> 
> I have an app that is starting to use extensions (today widget, watch app, 
> etc). if the user signs up or logs in from the main ios app, whats the best 
> way to replicate/load this database to these extensions that live in other 
> processes? Ideally I don't need to perform push/pull replication since the 
> network connection might not be available. These extensions are basically 
> separate containers / sandboxes on the same device. They can share a 
> filesystem via app group memberships.

I don't think replicating the database into the extension's sandbox is a good 
idea, since it consumes disk space and I/O bandwidth.

It's OK to put the database into the shared area of the filesystem and have the 
app and extensions all access it. The only thing you lose is that if one 
process changes the database, the others don't get notified; so if your UI 
updates are driven by notifications (or indirectly by them, via CBLLiveQuery or 
CBLUITableSource) they won't update to display changes from other processes. 
This is probably not a problem, though, because presumably the app and the 
extension aren't onscreen at the same time.

—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/29DCDCC7-BF20-4979-B4B8-4030356708D1%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to