MDL-37250 mod_lesson: Move conditions to queries for better performance
commit726051dcf945a1bf80525d86308b6f44d76555fc
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 12 Jul 2016 11:26:46 +0000 (12 13:26 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 12 Jul 2016 11:33:18 +0000 (12 13:33 +0200)
tree1621c0aae5da18153b359c7a1a94e9754ab0dda3
parentcd172ea20ee2a42dd67cfe45809543a012f202b2
MDL-37250 mod_lesson: Move conditions to queries for better performance

While this ony seems to affect MySQL, better put the filter/conditions
on every query so the temporary view/table does not need to handle
thousands of potentially unrelated records.
mod/lesson/report.php