The problem that I have right now is that if any of the webservice calls fail, I would need to inform just that mobile client who created it (Since its not a valid object in the system). I tried to look at parameterized filters, which could allow this as I can pass in a parameter from iOS/Android and return TRUE or FALSE from the filter
Since we have 3000 mobile users and are expecting a surge in the upcoming release (that uses SG + couchbase mobile), would it be okay to create a channel for each user? Are there any performance implications I should be worried about.
On Apr 22, 2014, at 7:57 AM, Rajagopal V <raja...@gmail.com> wrote:The problem that I have right now is that if any of the webservice calls fail, I would need to inform just that mobile client who created it (Since its not a valid object in the system). I tried to look at parameterized filters, which could allow this as I can pass in a parameter from iOS/Android and return TRUE or FALSE from the filterI don’t understand how you’d use filters for that. Can you explain what you’d do?
{ "_id": "_design/owndocs", "filters": { "owndocs": "function(doc,req) { return (req.query.owner == doc.createdById); }" }}
My immediate idea would be to just have the server code update the document, perhaps adding an “error” property describing the problem. But that assumes the clients are pulling changes from the gateway; is that happening in your system?
Since we have 3000 mobile users and are expecting a surge in the upcoming release (that uses SG + couchbase mobile), would it be okay to create a channel for each user? Are there any performance implications I should be worried about.Yes, that works. The overhead per channel is pretty low.