Hi Herman, 1. 1k docs isn't that big of a number, but replication time depends on many parameters, such as: a) are you replicating from couchdb or sync_gateway? latter has _bulk_get which brings siginificant improvements in UI. b) do you have large attachments? c) what's the network latency between the user and a server? if user is in japan and server is in US then network latency really kills it.
2. i have the similar problem, 'though i use my own solution instead of CBLLiveQuery, you have two options: a) put a fullscreen controller with loading bar then when replication finishes dismiss it and display main app ui b) analaze your app and disable some live queries while replicating to avoid flickering. 3. CBL keeps replicating in background as long as iOS will allow app to keep run in background, no different from any other app. - Igor Le vendredi 29 août 2014 03:50:21 UTC+2, Herman Chan a écrit : > > Hi there, > > We are using the latest CBL ios/android in our mobile app which possibly > syncs to multiple couchdb backend database. > > We run into an issue when some user tries to reinstall or simply > installing our app in a new device when they have quite a few documents in > their couchdb(s) (i.e: more then 1000 docs). > > The problems are: > > 1. It takes quite awhile to replicate down all the docs (don't know if > there is any way to optimize this). > 2. Since we have liveQuery attached to most of our UI, the UI jumps > around a lot as document comes in. > 3. When a user hit the Home button before all the replication is done, it > seems like replication stops which is fine for normal cases, but not when a > user sign up and still have unknown amount of docs to replicate down. > > > Any thoughts is appreciated. > > -- Herman > -- 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/11760977-61fb-4829-800c-c4988388a190%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
