MDL-59367 participants: Reduce db queries
authorDamyon Wiese <damyon@moodle.com>
Wed, 26 Jul 2017 03:20:35 +0000 (11:20 +0800)
committerDamyon Wiese <damyon@moodle.com>
Wed, 26 Jul 2017 03:21:59 +0000 (11:21 +0800)
commit0ae28fad3ad6e72095f1918019df8e41bcc3b1fa
treef9e063d9751f716774ce819cf1b3cd0b24e40347
parent7740e186e19dc0ddb6d756b1cc5109f5ab0ac4bc
MDL-59367 participants: Reduce db queries

Fetch all role assignments for the course in a single query, instead of for each of the listed users.

More data but less queries.
lib/accesslib.php
lib/tests/accesslib_test.php
user/classes/participants_table.php