On Sep 26, 2017, at 11:05 AM, devlist <dev...@mac.com> wrote:However it appears that the limit of 20MB applies to attachments if using Sync Gateway and a Couchbase bucket?
If correct this seems to negate some of the advantage of attachments ? Any plans for this to change?
I’ve tried and it seems to work however the upload speed is very slow.
Say I have a single local CBL document with 20 x 10MB attachments, it takes about 4 minutes to replicate to SG.
In Activity Monitor I can see that it uploaded about 2GB of data, 10 times what I expected.
On Sep 26, 2017, at 1:11 PM, Jens Alfke <je...@couchbase.com> wrote:In the long run we want to move Sync Gateway attachment storage outside of buckets, but there aren’t concrete plans to do this yet.
On Sep 29, 2017, at 7:35 AM, devlist <dev...@mac.com> wrote:However if attachments are added later on then the entire thing will be re uploaded.A suggested optimisation would be to check the previous revision and just upload attachments that have a new signature?
On 29 Sep 2017, at 17:36, Jens Alfke <je...@couchbase.com> wrote:It already does this. Each attachment tracks what revision it was added/modified in (it’s a “revpos” attribute in the JSON) and the replicator only transfers attachments that have a newer revpos.So I don’t understand why the attachments would be transferred multiple times, unless you were re-adding every attachment in each revision. What does the document JSON look like, in the original code where you created multiple revisions?—Jens