Skip to content
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

Efficiency tweak (a significant improvement for large classes). #22

Conversation

drgrice1
Copy link

@drgrice1 drgrice1 commented Dec 1, 2023

Don't query the database for permissions for each user record in a loop. Instead obtain all permission levels in one query. Timing shows a significant speed up for large classes with this.

Don't query the database for permissions for each user record in a loop.
Instead obtain all permission levels in one query.  Timing shows a
significant speed up for large classes with this.
@Alex-Jordan
Copy link
Owner

This is great, thanks.

@Alex-Jordan Alex-Jordan merged commit 32da067 into Alex-Jordan:instructor-tools Dec 1, 2023
1 check passed
@drgrice1 drgrice1 deleted the instructor-tools-efficiency-tweak branch December 1, 2023 17:29
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.

2 participants