Hi, sometimes it is not so simple to explain question in short sentrence.
Q1:
To clear my question from the previous “chat session”, I would like to ask, if Is it possible to publish and then subscribe same collection multiple times, but without merge both publications into same collection.
For example: publish list of users connected with mee - friends (with some fields) together with list of friends of my friend (with another fields). On the server side, they are still only “users”, on the client, they can by: “my friends”, “chat users”, “frieds of my friends”…etc.
Of course, they will be mixed in single minimongo collection on client, but sometimes it is confusing. Therefore, I would like to ask, if is possible somehow define name in minimongo, where I’m subscribing to collection for example: users_chat, users_friends, users_some_another…
Q2:
What is the best practive, how to work with publications? For example in my case, I will subscribe all data, which I’m often using before loading router and than Im subscribing only missing data (for example for forms or datagrids). Is it correct approach?
Q3:
When I will put mongo selections directly into methods and publications, sometimes lot of code (and also list of published fields) are often releated (in some cases). Are you moved mongo selections from methods and publications to some another place (for example Models) to be able to reuse it? Or you are using some another way?
Q4:
@filipenevola how to make performance testing for methods and publications? Does exists some (simple) way to make this kind of tests?
Thanks a lot.
KC