]> git.mjollnir.org Git - moodle.git/commit
user/index: Show enrolment and group/grouping data in Participants page MDL-12311
authormartinlanghoff <martinlanghoff>
Fri, 23 Nov 2007 00:22:56 +0000 (00:22 +0000)
committermartinlanghoff <martinlanghoff>
Fri, 23 Nov 2007 00:22:56 +0000 (00:22 +0000)
commit664fe87f299e42242dde47755d54a39dfd000cea
tree466c1ad7999ccb9024b4ea1773b02441b5bc5c5f
parent5fe600ebe745fe87cd9c73f1d3e4ef1d46f4b180
user/index: Show enrolment and group/grouping data in Participants page MDL-12311

The participants page will now show (to users that have
moodle/role:assign) the relevant enrolments for each participant.

This is done with a second SELECT using a WHERE id IN() so we are
limited to doing it with small datasets. This is for 2 reasons

 - we cannot retrieve all teh data in the "main" SELECT because
   the outer joins will bring dup rows, breaking LIMIT

 - we cannot use the main SELECT as a subselect because we cannot
   retrieve the LIMIT part of the statement with the current dmllib

 - on large courses / sitecourse performance would be horrible

so it is limited to paginated datasets. It is doing 20 recs at a time,
the "extra" SELECT takes ~7ms on a some large Pg databases).

This will generate an extra DB query on Oracle (and any other DB that
cannot rewind the recordset) because we walk the main rs twice.

While at it, ensure we mark the unsortable columns thus...
user/index.php