MDL-37577 quiz overdue handling: optimise database query
commit876ba8faec0fc7d04072cc5f6fd4e33d3c25042e
authorTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 18 Jan 2013 16:43:48 +0000 (18 16:43 +0000)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 21 Jan 2013 13:23:27 +0000 (21 13:23 +0000)
tree0bf92788a3cb24d79f40c381b66f3e5488e19e75
parent7def53379b5d4d82e2c52f687d288e74c7a3bce9
MDL-37577 quiz overdue handling: optimise database query

This is the standard trick of adding a redundant WHERE clause to a
subquery to help the database realise that it does not have to inspect
so many rows.
mod/quiz/cronlib.php
mod/quiz/locallib.php