Skip to content

Speed up assignments of achievements. #2711

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

If you have payed attention (or tested #2709 and #2710), then you know that this takes a long time if there are a large number of users. Way to long to be at all reasonable.

This uses techniques like those used for assigning multiple sets to users, i.e., the WeBWorK::DB::Schema::NewSQL::Std::insert_records and WeBWorK::DB::Schema::NewSQL::Std::update_records methods, to speed up assignment of achievements to users.

This brings the assignment time for 5000 users down from more than 8 minutes, to less than 30 seconds.

@drgrice1 drgrice1 force-pushed the assign-achievements-massive-speed-tweak branch 5 times, most recently from b13a38f to 50e7de0 Compare April 27, 2025 16:15
@drgrice1 drgrice1 changed the base branch from develop to WeBWorK-2.20 April 29, 2025 12:22
If you have payed attention (or tested openwebwork#2709 and openwebwork#2710), then you know
that this takes a long time if there are a large number of users.  Way
to long to be at all reasonable.

This uses techniques like those used for assigning multiple sets to
users, i.e., the `WeBWorK::DB::Schema::NewSQL::Std::insert_records` and
`WeBWorK::DB::Schema::NewSQL::Std::update_records` methods, to speed up
assignment of achievements to users.

This brings the assignment time for 5000 users down from more than 8
minutes, to less than 30 seconds.
@drgrice1 drgrice1 force-pushed the assign-achievements-massive-speed-tweak branch from 50e7de0 to 524cb33 Compare April 29, 2025 20:06
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