Skip to content

Speed up achievement scoring. #2712

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

First get all of the necessary achievement data from the database, then process it and print it to the file.

Comparing scoring all course achievements for all users in a course with 5000 users shows a considerable speed improvement. It takes more than three minutes for this with the develop branch, and less than 3 seconds with this pull request.

Obviously the generated scoring files are identical.

@drgrice1 drgrice1 force-pushed the achievement-scoring-speed-up branch 2 times, most recently from 7e6dbde to 94d4d67 Compare April 27, 2025 16:14
@drgrice1 drgrice1 changed the base branch from develop to WeBWorK-2.20 April 29, 2025 12:22
First get all of the necessary achievement data from the database, then
process it and print it to the file.

Comparing scoring all course achievements for all users in a course with
5000 users shows a considerable speed improvement. It takes more than
three minutes for this with the develop branch, and less than 3 seconds
with this pull request.

Obviously the generated scoring files are identical.
@drgrice1 drgrice1 force-pushed the achievement-scoring-speed-up branch from 94d4d67 to 25100a9 Compare April 29, 2025 20:05
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