MDL-33788 completion: SQL optimisation

This commit is contained in:
Aaron Barnes 2012-06-16 22:47:48 +12:00
parent 2cbdaa77ea
commit 7ba1c66592

View File

@ -377,10 +377,11 @@ function completion_cron_completions() {
SET
reaggregate = 0
WHERE
reaggregate < {$timestarted}
reaggregate < :timestarted
AND reaggregate > 0
";
$DB->execute($sql);
$DB->execute($sql, array('timestarted' => $timestarted));
}
/**