-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
5.0
This code needs to be improved: https://github.com/moodle/moodle/blob/2499276c6588973187edd115b955cd008682423e/mod/quiz/classes/structure.php#L1865
- The SQL is really abusing GROUP BY to get distinct rows from an inefficient query with many repeated rows.
- It gets data for every module with questions in the whole system, not just the ones used in this quiz, which is hugely inefficient.