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

code_gen takes about 4 minutes to generate with even just small change in one query #311

Closed
AidaPaul opened this issue Sep 21, 2023 · 5 comments

Comments

@AidaPaul
Copy link

Heya,

We have a project with gql schema that's already notable and growing (1k+ lines and lots of queries in the code), and every time we run dart run build_runner build it takes about 4 minutes to finish. Which would be less of an issue if we were talking about updates on schema, but we also must run it when adjusting queries, which as you can imagine is quite cumbersome on development.

Are we doing something wrong? Is there something where we can tweak this? Realistically for something we must run at every query change, the time I would expect should be in seconds max, so minor tweaks is not what I am after here, just more hoping we've messed something up badly.

@github-actions
Copy link

👋 @Puciek
Thank you for raising an issue. I will investigate the issue and get back to you as soon as possible.
Please make sure you have provided enough context.

This library is created and maintained by me, @budde377. Please consider supporting my work and ensure our survival by donating here.

@budde377
Copy link
Contributor

Thanks for raising your issue, what version are you on?

@AidaPaul
Copy link
Author

0.13.1

@budde377
Copy link
Contributor

I am very surprised you are seeing such poor performance. If you are able to share your schema and queries, e.g. in private repo, then I can try and run the generator against it and identify any bottlenecks.

@AidaPaul
Copy link
Author

Sure, i'll get some examples sorted for you later today, thank you :D

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