-
Notifications
You must be signed in to change notification settings - Fork 11
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
Enhance query performance using batch-loading #881
Conversation
50813df
to
cebb695
Compare
Codecov Report
@@ Coverage Diff @@
## master #881 +/- ##
==========================================
+ Coverage 71.28% 71.39% +0.11%
==========================================
Files 285 285
Lines 7246 7274 +28
Branches 1531 1519 -12
==========================================
+ Hits 5165 5193 +28
Misses 2046 2046
Partials 35 35
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Accessing `box.location.base_id` previously issued another DB select query to fetch the location field albeit already joining with the location table. Now the `Box.select()` call is updated
- reduce duplicated code - sort classes in file
…egories Would be fixed by updating the RBP names in the Auth0 scripts for dev and staging; but that in turn after merging confusingly breaks all open PRs as long as they are not rebased on master yet Cf. https://trello.com/c/J34Z923v
50696a9
to
d3e10c1
Compare
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.
code review
looks good
functional review
everything works as before. hard to test though
Make more use of batch-loading for user, base, and organisation fields, hence avoiding excessive DB queries.