On Apr 22, 2014, at 10:41 AM, Rajagopal V <[email protected]> wrote:

> I was assuming a filter that would work like:

Right, that would be the CouchDB approach. It's more expensive than channels 
because that JavaScript function has to run once per document per user.

> Yes, that is correct. All mobile clients are pulling in from the gateway and 
> this is what will happen even if there is an "error". I was planning on 
> changing the type of the document to "error" and PUT-ting it back to the 
> gateway, but that would mean that all the clients will fetch it.

If there aren't too many errors, that might work OK. It's a simpler system 
because you don't need individual user channels, just one 'errors' channel.
Otherwise, assign the document to a channel based on its createdById property, 
and have each client pull only from the channel corresponding to its ID.

--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/62E4AE74-EC22-444F-81F5-6CA15F54EC68%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to