Couchbase Sync Gateway - limit on number of channels? -


does make sense define channel per 1-4 documents?

the use case trying solve synching user's accounts between different devices of same user:
example lets have 1 million docs (accounts) in bucket, defining 400k channels, channel each user. in example have 400k users each 2.5 accounts in average.

does sound right case sync gateway?

as per cb documentation roles:

roles named collections of channels. user account can assigned 0 or more roles. user inherits channel access of roles belongs to. unix groups, except roles not form hierarchy.

that hint me approach should amended , should design channels roles in mind. result you'll have less channels. work out roles like: usergroupa, usergroupb, etc.

in humble opinion, approach sounds bit "unscalable" since if number of users grows channels number.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -