forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-82584 mod_workshop: Refactor DB queries
Refactor workshop participant queries to improve performance. This commit refactors how the authors/reviewers selectors are done in mod_workshop. Previously this was trying to do all the work within SQL so querying user roles and capabilities, with massive UNIONS for each group on the course, which on big courses lead to SQL thousands of lines long which broke the page, or took 5+ minutes to load. This has been refactored to try and query only what is required and then do capability checks within code instead of SQL.
- Loading branch information
1 parent
269a8a8
commit 5dc79c4
Showing
2 changed files
with
115 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.