forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-43176 enrol_meta: enrol_meta_sync query is inefficient
Before this change the nested select did a full table scan of either the enrol or user_enrolments table. This meant that on large sites the query could be very slow. This change ensures that there are no full table scans which makes the query much more efficient. In my testing the all courses version of the query changed from ~15 s to ~ 5 s; the singles course version changed from ~15 s to > 0.1 s
- Loading branch information
Showing
1 changed file
with
35 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters