MDL-61905 mod_workshop: Adjust privacy SQL queries
commit0c392c1a85560caecddb5292c01f4af299096165
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:06:08 +0000 (10 13:06 +0200)
tree390ba88e0ad7e57170326a3ef652415748210fd7
parent7a797d3fe509dcc0405432fd7cf1ffe46939ab59
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