Couchbase Lite - look at documents without storing it on the device.

27 views
Skip to first unread message

CouchbaseLover

unread,
Oct 24, 2014, 6:47:54 AM10/24/14
to mobile-c...@googlegroups.com
Hey :)
I will try to structure this the best i can. 

Example.

You search for all wines in the Database without having to store every wine(document), we are successful and the indexing with 3.0 is quite amazing. But the downside is that we still haven't managed to find a way to get attachments with the search.(you need the document that has the attachment synced down to the device searching to access attachment, i know)

So as you can see, we need some features in the app that is (always online) like  Vivino/Facebook/Twitter etc. We believe we have achieved this in a pretty decent way the last 9 months but we really need a solution for attachments now.

How do you do it? Obviously we can't be the only ones wanting to have the best of both worlds...:)

A hack would be whenever you are searching for some document with an attachment, we sync it all down to show it to the user. When the user is done we delete them.

Regards
CouchbaseLover

Jens Alfke

unread,
Oct 24, 2014, 11:48:20 AM10/24/14
to mobile-c...@googlegroups.com
On Oct 24, 2014, at 3:47 AM, CouchbaseLover <sharess...@gmail.com> wrote:

You search for all wines in the Database without having to store every wine(document), we are successful and the indexing with 3.0 is quite amazing.

It sounds like your app is querying Couchbase Server directly? How are you doing the query?

But the downside is that we still haven't managed to find a way to get attachments with the search.(you need the document that has the attachment synced down to the device searching to access attachment, i know)

Send a GET to the Sync Gateway, for /db/docid/attachmentname
(The Gateway has a documented REST API.)

—Jens
Reply all
Reply to author
Forward
0 new messages