Recursion in publication or subscription?


#1

Our Meteor app publishes data for native iOS and Android clients, they talk to the server via DDP. Sometimes I see kind of recursions on kadira, and I’m not sure if the error lies in wrong publication order or if the clients maybe subscribe several times (they are written by other teams). I am not sure how to interprete the traces, an example is attached.


#2

This seems like you have subscribe() calls either inside an autorun() block, onRendered hook or in other code blocks that get executed frequently. So I would start diagnosing this by investigating how and where are you subscribing to all those publications from the screenshot.