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

Performance decrease after 0.15.0 #941

Open
msjonker opened this issue Apr 4, 2024 · 3 comments
Open

Performance decrease after 0.15.0 #941

msjonker opened this issue Apr 4, 2024 · 3 comments

Comments

@msjonker
Copy link

msjonker commented Apr 4, 2024

I have a fairly large GraphQL schema that generates in about 1 minute using v0.15.0. However, after upgrading to v1-2+, the time increases drastically to around 15 minutes with the exact same simple configuration. Is there any known reason for this significant performance decrease?

I've tried removing things to be documented in the config, but that still doesn't help, as the schema modification and cleaning seems to increase the processing time instead of decreasing it.

@newhouse
Copy link
Collaborator

newhouse commented Apr 5, 2024

Hi there @msjonker thanks for writing in.

I'm not aware of any reason that things should be slower on the newer versions, but it's likely that there's something about your schema that's triggering a bug or something in SpectaQL. Perhaps some kind of circular referencing or something like that.

I'm wondering if you might be able to share a way for me to reproduce this? A schema, your config, and the command you're running would be great. Not sure how sensitive your schema is, but this would be the most helpful thing for me to have a look. Otherwise I really would not know where to start.

In the meantime, you might also want to delete your node_modules folder (a la rm -rf node_modules) and re-install your dependencies. Sometimes this helps for me.

@msjonker
Copy link
Author

Thanks for looking into this, @newhouse!

Is there a way I can privately share my schema and config with you? It's not extremely sensitive, however I would prefer not to share in this public forum.

@newhouse
Copy link
Collaborator

Is there a way I can privately share my schema and config with you? It's not extremely sensitive, however I would prefer not to share in this public forum.

Maybe the best way might be to create a private repo or Gist, and then invite me to it (@newhouse) or e-mail it to me at newhouse@useanvil.com.

You could also just e-mail me the files directly if you like.

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