Hi Jens, thanks for responding and for the sync function example, will try 
it out.

On Friday, 26 February 2016 01:54:06 UTC+8, Jens Alfke wrote:
>
>
> On Feb 24, 2016, at 4:24 AM, Janaka Jayasuriya <[email protected] 
> <javascript:>> wrote:
>
> No. When you specify multiple channels you're asking for their * union*. 
>> Since the user doesn't have access to any documents in the "priority" 
>> channel, asking for it is a no-op.
>>
>> —Jens
>>
>
> Hi Jens, is it possible to get the intersection? 
>
>
> Not with the current implementation. You can file an issue to request 
> this, but my guess is that it wouldn’t be easy to add, probably requiring 
> significant internal rework of the way changes feeds are generated.
>
> However, note that your sync function is solely in charge of which 
> channels a doc is added to. So you can add some logic to it that adds the 
> doc to a special ‘union’ channel if it’s being added to all the relevant 
> channels.
> if (a) channel(“a”);
> if (b) channel(“b”);
> if (c) channel(“c”);
> if (a && b && c) channel(“a-b-c”);
> Then the client can request to pull channel “a-b-c”.
>
> —Jens
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/8d74f4de-a4c5-486d-8977-3a283463dce4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to