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

Reporter in fetch-lists.ts causes significant slowdown #8

Open
kdichev opened this issue Sep 1, 2020 · 1 comment
Open

Reporter in fetch-lists.ts causes significant slowdown #8

kdichev opened this issue Sep 1, 2020 · 1 comment

Comments

@kdichev
Copy link

kdichev commented Sep 1, 2020

I have a lot of types and a lot of nodes to be fetched and looks like this kind of reporting slows down the fetching process.

When I remove the reporter locally, I manage to source the data for 10x the time. This might be that my laptop does not have the best hardware but it's definitely faster without the reporter.

Maybe we should find a better way to log what is happening in that function, possibly provide an api to log things if one wants to.

https://github.com/gatsbyjs/gatsby-graphql-toolkit/blob/0ece5cec5c7998150dc3eb360015846c5fa233bf/src/source-nodes/fetch-nodes/fetch-lists.ts#L21&L22

@vladar
Copy link
Contributor

vladar commented Sep 3, 2020

@kdichev Thanks for the feedback! This is on my radar. We will probably remove the reporter or make it optional.

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