mirror of
https://github.com/moodle/moodle.git
synced 2025-02-23 19:44:19 +01:00
Reworked to take queries out of loops and let it scale. Unfortunately I don't think we can get the get_users_by_capability() call out of the loop on assignments. Real query numbers before/after: Teacher: 12,509 / 314 Student: 127 / 72 Admin: 718 / 133 Conflicts: mod/assignment/lib.php Merged from 19_STABLE (with dmlib changes)