MDL-61905 mod_workshop: Adjust privacy SQL queries
commit74d018c3e0040c98a7ee2c26d8372b6f335cbaee
authorAndrew Nicols <andrew@nicols.co.uk>
Thu, 10 May 2018 07:36:58 +0000 (10 15:36 +0800)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 10 May 2018 11:05:48 +0000 (10 13:05 +0200)
treed785bea717def002a00376cdbd61a89404df67e8
parent4f53102a9e06027c22fdd0984e13497bf34166f0
MDL-61905 mod_workshop: Adjust privacy SQL queries

This change moves the content of WHERE to the JOIN, thus filtering the
results before they are returned. This reduces the number of joined rows
which gives a big performance benefit.
mod/workshop/classes/privacy/provider.php