Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle stopping a publication early #121

Merged
merged 4 commits into from
Jun 19, 2019

Conversation

rclai
Copy link
Contributor

@rclai rclai commented Feb 7, 2019

I've encountered a situation where if you subscribe to a huge publication, or any-sized publication really, and you want to stop it early, the publication won't stop until all the cursors have finished running (i.e. onStop doesn't get called until the cursors have returned). This PR allows the onStop to be called immediately in order to stop the cursors. This PR potentially fixes other issues people are having that they may have perceived as a performance issue.

The code on publication.js isn't so great but it works. I am open for someone to clean that up so it isn't so terrible.

@reywood reywood merged commit cd85502 into Meteor-Community-Packages:master Jun 19, 2019
@yched
Copy link

yched commented Sep 6, 2019

This caused unintended behavior changes, see #124
It seems maybe this should be reverted ?

For now we had to lock to 1.7.0

reywood added a commit that referenced this pull request Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants