Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
2.6.4, 2.7.1, 2.8
-
MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
-
MOODLE_26_STABLE, MOODLE_27_STABLE
-
wip-
MDL-46826-master -
Description
Occasionally, queries pop up which use forum_discussions.course as the filter condition, and join forum_posts and friends to fetch some data.
This does not work very well as there is no index on the course field, so it results in quite poor queries.
The latest case seems to be MDL-31089 which has made forum_print_overview a very serious bottleneck, found when testing 2.5 vs 2.7 performance.
An index should be added to the course field to prevent these problems.