On Feb 24, 2016, at 4:24 AM, Janaka Jayasuriya 
<[email protected]<mailto:[email protected]>> 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/04B53D1C-1DA8-4F63-A6A3-15C9BBC1619F%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to