Why does meteor reset subscriptions on login / logout?
It would be quite useful have some control over this situation if anyone knows how / if this is possible.
My application has a lot of custom subscriptions because its actually backed by an SQL database rather than a Mongo database.
Today looking at the logs I realised that my subscriptions are being completely refreshed when a user logs in or out. I have subscriptions that are not dependent on the user Id but meteor seems to want to delete each subscription and create new instances of them.
After some investigation I eventually found that this is intended behaviour indicated by the comments in liveddata_server.js where it says:
Sets the current user id in all appropriate contexts and reruns all subscriptions
Currently my new users subscribe to chat. Create an account, then subscribe to chat (and loads of other things) again.
Its actually not a problem for the backend due to the way we have merged our data but its putting unnecessary load on the front end