-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 GraphQL performance after upgrading to v3.5.3 #13216
Comments
Is it possible for you to verify that 3.5.0 or 3.5.1 is also slow? Looking at the changes, 3.5.2 is the only release which has the upgraded graphene-django version (3.0.2) which broke the graphql explorer. It was reverted (to 3.0.0) in 3.5.3. For context: Upgrading graphene-django would require fixing the graphql explorer, not that it's necessarily hard, someone just needs to do it. |
Ran the same test on a host running version 3.5.0 . |
@glesys-andreas have you been able to identify any changes that would improve performance? This may become a moot point if we adopt Strawberry for v4.0 (see #9856). |
Hi, We are currently running 3.6.0 on our test environment and we are experiencing the same (slow) performance there. Would be nice to see it implemented. We use the GraphQl API a lot so it would really make things a bit snappier :) |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I'm going to close this out as no specific changes have been proposed. If anyone would like to continue researching potential optimizations, please feel free to do so, and submit a new issue detailing the specific changes to be made if you find something. |
NetBox version
v3.5.6
Python version
3.9
Steps to Reproduce
[{"prefix": "10.0.0.0/24", "tenant": "Cyberdyne Systems", "status": "active", "vlan": 999}, {"prefix": "10.0.1.0/24", "tenant": "Cyberdyne Systems", "status": "active", "vlan": 999}.....]
Expected Behavior
In our prod environment running v3.5.2 this query takes about 200-400 ms and contains about 1700 prefixes,
Observed Behavior
Test 1:
In our test environment running v3.5.6 the same query takes about 6-8 seconds and contains the same data as prod (1700 prefixes).
Test 2:
Created about 500 vlans on demo.netbox.dev ( currently v3.5.6 ) and got about the same response time here: 6-8 seconds.
The problem started when we upgraded to v3.5.3
The text was updated successfully, but these errors were encountered: