Is there any limit on the number of channel tags of a document.

51 views
Skip to first unread message

john....@gmail.com

unread,
Oct 29, 2015, 2:29:05 AM10/29/15
to Couchbase Mobile

Lets say I have 1 to n million users. Each user has his own channel.  Now is it feasible that a documents could have for example 1000000 channel tags?
Many Greetings
John

Jens Alfke

unread,
Oct 29, 2015, 6:38:58 PM10/29/15
to mobile-c...@googlegroups.com

On Oct 28, 2015, at 11:29 PM, john....@gmail.com wrote:

Lets say I have 1 to n million users. Each user has his own channel.  Now is it feasible that a documents could have for example 1000000 channel tags?

The only hard limit I can think of is that a Couchbase Server doc can’t exceed 20MB, and SG stores a list of a document’s channels in the document as invisible metadata. So a few million channels would start to overflow this.

There are likely to be performance problems with huge numbers of channels on a doc, though, but they’re hard to characterize because they depend on the exact usage scenario.

It would probably be better to define a channel for the document, then give the subscribed users access to that channel.

—Jens

john....@gmail.com

unread,
Oct 30, 2015, 5:17:17 AM10/30/15
to Couchbase Mobile
yes that's a good idea. And there is no limit on the number of channels. Anyway in my use-case the max would be something around 50.000 cannels
Reply all
Reply to author
Forward
0 new messages