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

feat: Add option to prevent broadcast on query teardown (10x perf increase) #10363

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

alekangelov
Copy link

@alekangelov alekangelov commented Dec 13, 2022

Checklist:

  • If this PR is a new feature, please reference an issue where a consensus about the design was reached (not necessary for small changes)

  • [] Make sure all of the significant new logic is covered by tests -> not opposed to writing tests, but would appreciate a little help with this one. Originally, this broadcasting logic wasn't tested in the first place? Not sure, tho.

  • Here's the scalability threads: Scalability when many useQuery are used #10322 useQuery teardown performance #10291

Before
Screenshot 2022-12-13 at 12 42 54

After
Screenshot 2022-12-13 at 12 43 34

@apollo-cla
Copy link

@alekangelov: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

@changeset-bot
Copy link

changeset-bot bot commented Dec 13, 2022

🦋 Changeset detected

Latest commit: 800e102

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@apollo/client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dkempner
Copy link

This PR is awesome @alekangelov . We're already trying it out in our codebase. I hope it gets merged!

@alekangelov
Copy link
Author

big thanks to @nathanmarks for finding out the leak

@alessbell alessbell added the 🏓 awaiting-team-response requires input from the apollo team label Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏓 awaiting-team-response requires input from the apollo team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants