Deferring attachment download based on document type

5 views
Skip to first unread message

parvez....@decurtis.com

unread,
May 31, 2017, 10:48:11 AM5/31/17
to Couchbase Mobile


There are two kinds of Documents stored on Couchbase server with types (say):
"someDocs1" & "someDocs2". 
The documents with type "someDocs1" are having attachments that are bigger in size for which deferred attachment download is used. Is it possible that for other document type "someDocs2" we can download attachment along with document replication as attachment are very small in size? In short for one document type the attachment download is deferred while for another document type, attachment download is non deferred one.

David Brittain

unread,
May 31, 2017, 12:16:43 PM5/31/17
to mobile-c...@googlegroups.com
I would think you could write this logic yourself. Set the replicator not to download any attachments, when it goes idle, iterate over the documents with attachments that you want to download and trigger the download.

--
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 mobile-couchbase+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/6b90f408-f5cc-416b-96cb-47646b22f6dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

David Brittain
Co-founder/CTO
@ConceptsApp
Reply all
Reply to author
Forward
0 new messages