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

Server side graphql requests are stacking up #79

Open
chandan-reddy-k opened this issue Sep 3, 2020 · 1 comment
Open

Server side graphql requests are stacking up #79

chandan-reddy-k opened this issue Sep 3, 2020 · 1 comment

Comments

@chandan-reddy-k
Copy link

Hey @adamsoffer I’ve been using this HOC for the past one year (when it was version 2.0.x).

Recently I decided to upgrade it to version 5 and bumped the next.js version also to latest.

But when I deployed this, all my backend servers started crashing due to heavy load. On further investigation and putting some Graphql logs, I found that the requests were stacking up on server side requests.

For example, let’s say I request 1 product for the first time, it'll get that data.

2nd time when I request for another product on server side, it'll get that data + the data for previous one.

When this is repeated for 100 products imagine the number of requests made! 🤯

Any idea as to why this is happening? I’m assuming the client is actually being shared on the server.
D64C7105-75B1-4D46-B666-7FE0823F0D91

@adamsoffer
Copy link
Owner

woah that's odd! I'll try and reproduce on my end.

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

No branches or pull requests

2 participants