Meteor subscription takes forever... why?

It may just be inadvertent code/bug. I myself did so many mistakes in early days, eg. forgetting to put a limit and doing fetch on 1000s of documents without realizing the repercussions. Fibers and its sync execution is good but it requires a lot of responsible coding which many of us in early node/js stages are not familiar with.

The first sub request results in the DDP connection sending back 5000 items, one at a time. This will take a long time. Look at the DDP connection in the browser to see this like other folks have mentioned. The second sub request will compete with the first one (not sure if it even blocks till the first one finishes).

Follow the data and profile the app to see where the time is being spent. You will find the answer.

1 Like