Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Incomplete
-
Affects Version/s: 2.0
-
Fix Version/s: None
-
Component/s: Module: {none of the above}
-
Labels:None
-
Database:Any
-
Affected Branches:MOODLE_20_STABLE
Description
The exercise module brings my database to a crawl. The reason are two Cartesian joins in the function exercise_get_student_submissions(). All records from the user table are joined with each exercise submission, creating a huge result.
The attached patch fixes the problem (at least it seems to...)
I posted in the forums at: http://moodle.org/mod/forum/discuss.php?d=96336#p446981 to help identify the current maintainer of the exercise module. The patch seems reasonable to me as it limits the scope down to where the users match but I am not familiar enough with the exercise module to know of what impact the change would have. Hopefully someone will step forward to help maintain this module and then I can assign this issue to them and if they judge it to be a good patch they can then apply it to CVS. Peace - Anthony