Re: Multipart Uploader & document body request size

2017-12-08 Thread Brendan Duddridge
So here's something interesting. IBM has their own Cloudant CDTDatastore framework for iOS that syncs with their Cloudant system. Most of the code was written by you Jens :) And they also do multipart/related uploads. So I suspect the developers who used their own CDTDatastore framework are

Re: Cloudant 10 requests per second limit

2017-12-08 Thread Brendan Duddridge
Hi Traun, Looks like this is the code in question: > > > https://github.com/couchbase/couchbase-lite-ios/blob/9a8903b9e851d5584abeec069ead4d2637b3bb91/Source/CBLMisc.m#L381 > Ah excellent! I've added a check for the 429 error to tell it to return NO that's it's not a fatal error. Now I just

Re: Cloudant 10 requests per second limit

2017-12-08 Thread Traun Leyden
Looks like this is the code in question: https://github.com/couchbase/couchbase-lite-ios/blob/9a8903b9e851d5584abeec069ead4d2637b3bb91/Source/CBLMisc.m#L381 On Fri, Dec 8, 2017 at 11:40 AM, Brendan Duddridge wrote: > Hi Jens, > > > Sync Gateway will sometimes return a 503

Re: Cloudant 10 requests per second limit

2017-12-08 Thread Brendan Duddridge
Hi Jens, Sync Gateway will sometimes return a 503 if the DB server is overloaded; > CBL handles that by trying again a bit later. What status code does > Cloudant return? > Where in CBL does it handle the 503 error and try again? Do you think I could just modify the code to also do the same

Re: Couch Db and Couch Base Lite Syncing Data to Android App, List view not refreshing sometime With LiveQuery -- Changed Method not calling

2017-12-08 Thread Traun Leyden
I answered on Stack Overflow On Wed, Dec 6, 2017 at 1:37 AM, Damor vipul wrote: > "*I am new to couchDB and trying to pull the data from CouchDB to My > Devices using CouchSync Gateway. i achieved 80% success ration that out of > 10 , 8 times my data synchronized and i got

Re: Number of documents replicated less than those reported by Sync Gateway

2017-12-08 Thread Adam Wilson
Thanks, thats a good idea to diff for the missing ones. I just wondered if its behaviour thats been seen before. The sync function: function(doc) { if (doc.category == "free") channel("free") channel(doc.wordlist); // This is the part that I expect to replicate the same docs as the SG

Prevent a document from getting synced if not of particular type

2017-12-08 Thread parvez . qureshi
In Couchbase lite ios, how one can prevent syncing of a document via replication if that doc has the correct channel but do not have a type field? -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop