Skip to content

Speed up loading of the "Users Assigned to Set" page. #2714

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

Open
wants to merge 1 commit into
base: WeBWorK-2.20
Choose a base branch
from

Conversation

drgrice1
Copy link
Member

@drgrice1 drgrice1 commented Apr 21, 2025

Load all user sets for the given set and all users before rendering the template instead of getting one set at a time in the for loop inside the template. This speeds up loading of this page a lot with a large number of users. With 5000 users it decreases the load time from 3.4 seconds to 0.14 seconds.

Edit: Actually the above timing was when the sets were not assigned to the users. When the sets are assigned to all users it goes from 4.4 down to 0.8 seconds.

Load all user sets for the given set and all users before rendering the
template instead of getting one set at a time in the for loop inside the
template.  This speeds up loading of this page a lot with a large number
of users.  With 5000 users it decreases the load time from 3.4 seconds
to 0.14 seconds.
@drgrice1 drgrice1 force-pushed the users-assigned-to-set-load-speed-up branch from 679d7c4 to 57e128b Compare April 27, 2025 16:26
@drgrice1 drgrice1 changed the base branch from develop to WeBWorK-2.20 April 29, 2025 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant