-
Notifications
You must be signed in to change notification settings - Fork 3
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
Slow query execution when using @graphql-debugger/trace-schema
#287
Comments
@knikoloski thanks for reporting. I just shipped 0.0.0-alpha.103 It allows you to pass the Please try this option and report if you notice an improvement, in the mean time we will be working on benchmarks to better diagnose your described issue. |
This was referenced Apr 27, 2024
This was referenced May 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
I'm experiencing slow query execution when using the
@graphql-debugger/trace-schema
package in my schema setup. My schema setup includes Nexus for defining the GraphQL schema and Prisma for database access.Here's a simplified version of my setup:
Here's a simple
ping
query that I have defined:When I remove the
traceSchema
wrapper and exportnexusSchema
directly, query execution of theping
query is fast. However, withtraceSchema
, queryping
takes more than 1 or 2 seconds to execute (it should not take more than 20 or 30 ms to execute).Packages version:
@graphql-debugger/adapter-proxy:
0.0.0-alpha.100
@graphql-debugger/trace-schema:
0.0.0-alpha.100
Node.js version:
20.12.2
Prisma version:
5.10.2
Nexus version:
1.3.0
Additional information:
After debugging the
traceSchema
function directly in thenode_modules/@graphql-debugger/trace-schema/build/trace-schema.js
file, I found that removing the following block of code resolves the slowness issue:Please let me know if you need any further information. Thank you for your help in resolving this issue.
The text was updated successfully, but these errors were encountered: