MDL-61905 mod_workshop: Adjust privacy SQL queries
commit51e53b9f40bae27a96c0cc193a2ea6a28cb47b91
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:03:11 +0000 (10 13:03 +0200)
tree5d72fd08e0c112989df4537b83928123674285c7
parent8e8ae80550c19fbf1e0a5f96b15b0444a287d10d
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