I have a very large collection (~ 40,000 documents with ~ 20-25 fields, including arrays with a set of ~ 500 elements) and ~ 2,000 subscribers (now they are just bots).
So this is really hard work on the client, when the user subscribes to the entire collection (excluding some fields in the server publication) and uses Collection.find with custom filters, sorting and ordering
I tried using a publication with parameters: i.e. client-defined filters, etc. But in this case, I have too many memory leaks on the server and epic fail :) after a few hours.
Can anyone elaborate on some publication-subscription schemes for such collections? I do not ask for a clear solution, but some useful thoughts
thanks
source share