For one of my most used collections, these are the stats on observers:
I assume this is not really great. I read the article on improving this, but I’m not really doing a find
using arguments that change often. I’m using React, and not subscribing on a global level but rather within a component that appears on a specific page. So any time the user navigates to a different page, say “Settings,” the subscription is gone and will re-sub once they go back to the page. I’m not sure if that counts as a low reuse ratio or not.
In fact, I just looked at my subscriptions and find
statements, and I’m not really passing any arguments to either one. I’m limiting what’s returned on the publication side.
Meteor.publish('tracks', function () {
return Tracks.find({artistId: this.userId});
});
Meteor.publish('reels', function () {
return Reels.find({artistId: this.userId});
});
So how do I improve the observer reuse in this case?