mirror of
https://github.com/moodle/moodle.git
synced 2025-03-01 06:22:39 +01:00
The OR clause in these queries used different sets of columns to select userid which meant that the indexes that included user id could not be used. This change splits the query so that each individual part can use one of the indexes that includes a userid which speeds them up considerably.