How do I know if it is using _bulk_docs to store the docs? 
I am only having trouble with Android. The initial sync with iOS is about 
60 seconds. Android is taking close to an hour. I have tried both platforms 
on simulators and real devices with the same results. iPhone quick, Android 
slow. 

Watching the logs I see the following for about 60 seconds until it gets up 
to the current seq number.

D/ChangeTracker( 4997): com.couchbase.lite.replicator.ChangeTracker@46ae26e: 
changeTrackerReceivedChange: {seq=29063, id=bk::0801485479::19, changes=[{
rev=1-11fff18b55062758eff5f9da8737c2b1}]}


V/Sync    ( 4997): com.couchbase.lite.replicator.PullerInternal@df58c58: 
addToInbox() calling updateActive()
V/Sync    ( 4997): com.couchbase.lite.replicator.PullerInternal@df58c58: 
updateActive() called
D/Sync    ( 4997): changeTrackerReceivedChange: {seq=33333, id=bk::
1597491330::19, changes=[{rev=1-64fd2e4b908cdd9090a50693cddebcdf}]}
D/Sync    ( 4997): com.couchbase.lite.replicator.PullerInternal@df58c58: 
adding rev to inbox {bk::1597491330::19 #1-64fd2e4b908cdd9090a50693cddebcdf}
V/Sync    ( 4997): com.couchbase.lite.replicator.PullerInternal@df58c58: 
changeTrackerReceivedChange() incrementing changesCount by 1
V/Sync    ( 4997): com.couchbase.lite.replicator.PullerInternal@df58c58: 
Incrementing changesCount count from 14019 by adding 1 -> 14020
V/Sync    ( 4997): com.couchbase.lite.replicator.PullerInternal@df58c58: 
addToInbox() called, rev: {bk::1597491330::19 
#1-64fd2e4b908cdd9090a50693cddebcdf}.


Then I get the below for upwards of 60 minutes or until it crashes from 
being out of memory.
V/Sync    ( 4997): com.couchbase.lite.replicator.BulkDownloader@3cf72832: 
Starting new document; headers ={Content-Type=application/json}
V/Sync    ( 4997): com.couchbase.lite.replicator.BulkDownloader@3cf72832: 
Starting new document; ID=null
V/Sync    ( 4997): com.couchbase.lite.replicator.BulkDownloader@3cf72832: 
Finished document


I/CBLite  ( 4997): CBLManagerWorkExecutor Begin transaction (level 2)
I/CBLite  ( 4997): CBLManagerWorkExecutor Committing transaction (level 2)
V/Sync    ( 4997): com.couchbase.lite.replicator.PullerInternal@df58c58: 
inserting bk::0714838578::19 [1-ecba7aaa5d48b4dd20faa293031e7dc8]


On Wednesday, March 25, 2015 at 1:51:54 PM UTC-4, Jens Alfke wrote:
>
>
> > On Mar 25, 2015, at 10:32 AM, Gilbert Pleczynski <[email protected] 
> <javascript:>> wrote: 
> > 
> > Is there any documentation on this? 
> > I need to build an iOS and Android app with a pre-built DB. The initial 
> load of 70k docs is just too slow. 
>
> If you’re not using _bulk_docs to store the docs in the database, try that 
> first. It will speed things up a lot. 
>
> If you do need to go to a pre-built db, there isn’t any JavaScript API for 
> it. You’ll have to add native code, probably by modifying and re-building 
> the CBL plugin. 
>
> —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/1d5dec31-2c04-4e43-9829-acfd750b3dc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to