channels on doc stored via the python api

15 views
Skip to first unread message

Seung Chan Lim

unread,
Oct 20, 2014, 5:59:32 PM10/20/14
to mobile-c...@googlegroups.com
Hi,

I have a question about adding channels to docs stored directly (i.e. not via the sgw) through they python API.

Do I have to manually set the "channels" attribute from python to mimc the behavior of the sgw or is there a way to have the sgw monitor changes made to the couchbase directly and add them to channels using the sync function?

slim

Jens Alfke

unread,
Oct 20, 2014, 7:52:56 PM10/20/14
to mobile-c...@googlegroups.com
On Oct 20, 2014, at 2:59 PM, Seung Chan Lim <djs...@gmail.com> wrote:

I have a question about adding channels to docs stored directly (i.e. not via the sgw) through they python API.

You mean docs you add to the master bucket, that get added via bucket shadowing?

Do I have to manually set the "channels" attribute from python to mimc the behavior of the sgw or is there a way to have the sgw monitor changes made to the couchbase directly and add them to channels using the sync function?

Docs added via bucket shadowing are run through the sync fn like other docs, so they can be assigned channels that way.

—Jens
Reply all
Reply to author
Forward
0 new messages