-
Improvement
-
Resolution: Fixed
-
Minor
-
3.5.3, 4.2.3
-
MOODLE_35_STABLE, MOODLE_402_STABLE
-
MOODLE_404_STABLE
-
MDL-65403_master -
The messaging_cleanup_task process currently runs a query like this:
DELETE FROM mdl_notifications WHERE timeread < TIMESTAMP;
The mdl_notifications table can become quite large and the timeread field is not indexed which can lead to some very inefficient querying (several minutes on large tables instead of seconds). Please add an index to timeread to improve performance.
- has a non-specific relationship to
-
MDL-64553 Notifications table has no index for the useridfrom column, and it has significant impact on performance
- Closed