On Apr 13, 2016, at 1:25 AM, Joel W
<[email protected]<mailto:[email protected]>> wrote:
Cool, so what you are saying is that each user would have 2 channels a
'Messages' channel and a 'Relationship' channel? In terms of scale there
wouldn't be an issue if say you had 100k users which would mean 200k channels?
Channels are pretty lightweight; they’re more like tags on messages.
(I’m separating the two kinds of channels so that following someone doesn’t
automatically show you who they’re following or being followed by.)
Did you mean to say that by following someone they don't automatically see your
messages? If as you said the sync function is adding {“user”: “A”, follows:
“B”} to both A and B's 'relationship' channel. Wouldn't they be able to see who
followers them etc but if you only grant B access to A's 'message' channel, B
would only see A's messages and A wouldn't see B's messages?
What I meant is that following someone should give you access to their
messages, but not to the documents that show who they’re following. Which means
that those two types of documents should be in different channels, i.e. a posts
and a relationships channel.
—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/60B22234-433D-4A97-98B1-144D829FF555%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.