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