-
-
Notifications
You must be signed in to change notification settings - Fork 708
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
Improve admin/enterprise_roles
page performance
#11983
Improve admin/enterprise_roles
page performance
#11983
Conversation
4873184
to
9f9e160
Compare
I think the proper fix is to add pagination on the |
We are actually in the process of replacing AngularJS with StimulusReflex. Would you enjoy rewriting that page to remove AngularJS? |
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.
Great work!
Just a bit of cleanup needed.
= admin_inject_enterprise_roles(@enterprise_roles) | ||
= admin_inject_users(@users) |
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.
It looks like these two helpers are now unused and can be deleted.
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.
updated, thanks
Ah sorry, I would love focus only with BE, I can help if you need to update APIs for those |
dc3eaec
to
ab6a7e3
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.
No worries. Thanks for your contributions.
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.
Great work ! I spotted a typo, could you fix that ?
Hi @bmd08a1, I have tested this on staging UK and FR, both with similar results. The page is loading and it's really fast. That's a great improvement! Merging and thanks again! |
What? Why?
Closes [Staging servers] Snail (error 504, timeout) when accessing the page /admin/enterprise_roles #11976
The page is returning 504 error when there is too many enterprise roles to display
Solution:
.joins
to reduce N+1 queries.plucks
to avoid initializing modelsBenchmark result:
roughly 80x time faster
What should we test?
Release notes
Changelog Category (reviewers may add a label for the release notes):
Improve
admin/enterprise_roles
page performance