mirror of
https://github.com/moodle/moodle.git
synced 2025-03-16 13:40:15 +01:00
I have broken up the single query that was doing multiple joins on the messaging and user tables. It no longer does any joins and will instead query each data set individually. This may cost more in terms of PHP processing but it will mean that standard database tunings should be able to handle larger data sets. For example this function was taking a long time to run on moodle.org and was causing the MySQL join buffer to overflow.