-
Improvement
-
Resolution: Fixed
-
Major
-
4.5, 5.0
On our big instance we discovered that courses with at least one instance of mod_subsection have performance issues when editing operations are being done. The performance issues become worse the more instances of mod_subsection the course has.
On our instance with 4.9 million entries in the course_sections table we discovered the following slow query in our DB monitoring:
select id, name from mdl_course_sections where component = ? and itemid = ?
which takes 2 seconds. This is being called in mod/subsection/lib.php in function subsection_get_coursemodule_info.
This seems to be called for every subsection instance and each time the course modinfo cache is being re-created which slows down all course editing operations (correct me if I'm wrong). So in a plain course in our production system with 7 subsections it takes 30 seconds to add the 8th subsection for example.
- will be (partly) resolved by
-
MDL-85034 mod_subsection slows down course editing operations (backport of MDL-84844)
-
- Closed
-