Just to follow up, I did some digging and realized this pruning with sync_gateway based on revs_limit doesn't take place until after a document update. So I updated a document. I am still seeing no change in the number of revs coming down during the intial sync.
-j On Wed, Apr 29, 2015 at 12:46 PM Jeremy Kelley <[email protected]> wrote: > > Current environment > - ubuntu 14.x and 12.x > - sync_gateway built from master on github about 10 minutes ago > > I have some documents with many thousands of revisions... During the > initial sync to CBLite on iOS, I'm seeing 2500 documents take sometimes 45 > minutes or longer or just never finish at all. Using -LogSync and > -LogSyncVerbose (awesome logging btw!), I've found it seems the hang up > comes during the insertion phase trying to deal with all of the revisions. > > ========8<============ > 2015-04-29 12:29:29.930 lvlrios[4115:1035684] SyncVerbose: CBL_Puller[ > https://EXAMPLE.com/_sync_] inserting fa4ab2befc59471eaf900c7d25633188 > ["2716-22fc2110693bf7545c2d86ebedb3c9e4", > "2715-30d236c458218561e63ee2694da2c596", > "2714-832ac666baf79fee62f352dd35126506", > ON AND ON AND ON AND ON > ========>8============ > > During some intense googling action, I came across the new db config > option of revs_limit in sync_gateway and gave that a whirl. > > ====8<======= > "databases":{ > "lvlrsync":{ > "revs_limit":100, > "username": "XXX", > "password": "totally secret d00d", > "server":"http://db.example.com", > ... > ====>8======= > > Unfortunately, I am still seeing the MANY revs coming down the pipe and > hanging during the initial sync. > > Admittedly, i haven't dug into the syncgw code yet to see if revs_limit > only applies to documents going forward or also to existing documents. > > Any help appreciated. I have some users that can't sync at the moment. > > > -j > > -- 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/CAN8S9iJXVrpWhkw8hCEfzQbePjMJ8j%3DDWCW115STGcA59yJGTg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
