-
Bug
-
Resolution: Fixed
-
Critical
-
2.5.4, 2.6.1, 2.7
-
MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
-
MOODLE_25_STABLE, MOODLE_26_STABLE
-
This is a regression of MDL-41062 which landed recently.
It seems that the main query of upgrade_grade_item_fix_sortorder() returns too many records, leading to the iteration later in code to perform way many updates (slow and advancing too much).
More details, for your consideration in this comment.
Ciao