-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.3.5
-
MOODLE_403_STABLE
On grade user report we initialise iterator 3 times and its the same iterator:
- First we do it here while calling get_gradable_users - https://github.com/moodle/moodle/blob/main/grade/report/user/index.php#L120
- Then we do it here separately - https://github.com/moodle/moodle/blob/main/grade/report/user/index.php#L139
- And the we initialise it for a search here - https://github.com/moodle/moodle/blob/main/grade/classes/external/get_enrolled_users_for_selector.php#L94
So we run same queries for no reason. We should cache it and reuse instead.
I think it happens on other reports too
- has been marked as being related by
-
MDL-82112 grade_report_grader::load_users() is called twice on grader report page
- Open