New Couchbase Mobile Video

46 views
Skip to first unread message

CouchbaseLover

unread,
Dec 3, 2014, 4:48:39 AM12/3/14
to mobile-c...@googlegroups.com
Nothing new in the video personally for us and our company but still a good video that i recommend everyone to watch :)

Best Regards,

CouchbaseLover

James Nocentini

unread,
Dec 4, 2014, 6:02:58 PM12/4/14
to mobile-c...@googlegroups.com
Thanks for posting this. Here are some moments I picked from it http://cl.ly/Ype5/jNLBJjLJCq0.mp4

I was wondering how to subscribe to the _changes feed when disabling the guest account.
As mentioned in the video using the admin port works great on the same private network.
Wondering how that would work across the public network.
Would creating an admin user that has access to all channels and authenticate as this user when subscribing to _changes feed work as well?

A side question: I remember reading in a discussion thread that when changing the sync function it will be re-executed on all documents in couchbase server.
But I don't notice that happening. Is there something to do to run the sync function on all documents again?

Will definitely check out the mini hacks repo too! (https://github.com/couchbaselabs/mini-hacks)

Jens Alfke

unread,
Dec 4, 2014, 7:38:16 PM12/4/14
to mobile-c...@googlegroups.com

> On Dec 4, 2014, at 3:02 PM, James Nocentini <james.n...@gmail.com> wrote:
>
> Thanks for posting this. Here are some moments I picked from it http://cl.ly/Ype5/jNLBJjLJCq0.mp4
>
> I was wondering how to subscribe to the _changes feed when disabling the guest account.
> As mentioned in the video using the admin port works great on the same private network.
> Wondering how that would work across the public network.

You shouldn't make the admin port accessible on a public network because it has unlimited privileges and no authentication, and anyone could use it to hack your database.

> Would creating an admin user that has access to all channels and authenticate as this user when subscribing to _changes feed work as well?

Yup, that would be fine. You just need to set that user up with "admin_channels":"*".

> A side question: I remember reading in a discussion thread that when changing the sync function it will be re-executed on all documents in couchbase server.
> But I don't notice that happening. Is there something to do to run the sync function on all documents again?

We changed that behavior in 1.0.3(?) because re-syncing all the documents can be very slow, and a lot of changes to the sync function don't require it. So there's now an API call to force a re-sync; I think it's POST /_db/_resync. It's in the API docs.

—Jens
Reply all
Reply to author
Forward
0 new messages