-
Notifications
You must be signed in to change notification settings - Fork 77
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
avoid n+1 queries on bulk GET /system
endpoint
#4120
avoid n+1 queries on bulk GET /system
endpoint
#4120
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The system management page can still access the fields it needs, looks good to me!
Passing run #4235 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #4120 +/- ##
==========================================
- Coverage 87.39% 87.39% -0.01%
==========================================
Files 320 320
Lines 19706 19707 +1
Branches 2531 2531
==========================================
Hits 17222 17222
- Misses 2042 2043 +1
Partials 442 442
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice one
Closes #4028
Description Of Changes
Narrow down what we return on the bulk
GET /system
endpoint to not have relationship fields that can lead to n+1 query problems - in this case, it was specifically theconnection_configs
property/relationship. See issue for more context.Code Changes
BasicSystemResponse
model without any relationship-backed fields, used for the bulkGET
endpoint.Steps to Confirm
nox -s "fides_env(test)"
with 4 systems, i added an additional integration onto one of those systems (i think two systems come seeded with integrations already).GET /system
endpoint take ~1s to respondconnection_configs
was no longer being returned on the bulkGET /system
endpoint response recordsPre-Merge Checklist
CHANGELOG.md