This repo shows meteor subscription slowdown when upgrading from 1.8.0.2
to 1.8.1
.
There are two branches:
- 1.8.0
- 1.8.1
Testing methodology:
- two collections -
Main
andLinked
- 30 documents in Main collection, each has 0..3 documents from Linked collection associated
- using grapher and grapher-react. meteor-publish-composite is dependency of
grapher
- subscribe to whole Main collection and also load all Linked items
- Clone the repo, install npm dependencies and run meteor.
- Open in browser, open dev console. Hit Retry several times and check the results in the console.
First load should be ignored. Clicking on Retry we get more representative results.
git clone https://github.com/bhunjadi/meteor-subscription-issue.git meteor-subscription-issue
meteor npm i
meteor run
Mostly between 90-110ms
git checkout 1.8.1
meteor run
Mostly between 180-230ms.
- 1.8.1 is around two times slower than 1.8.0.2
- When running from a checkout I bisected meteor devel branch and it appears that this commit caused the issue.
- The same issue is present for 1.8.2, too
grapher
andgrapher-react
- the same versions are used for each Meteor version so I would rule them out