-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
3.6.6, 3.7.2
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MDL-67092-master
-
Often when calling get_coursemodule_from_id() we are already dealing with the current course - information which we already hold. However we always go and call $DB->get_record.
On some pages, like forum, this can lead to at least 5, if not more, DB reads.
- Discovered while testing
-
MDL-66074 Epic: Create forum grading interface
- Closed