mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-33788 completion: SQL optimisation
This commit is contained in:
parent
2cbdaa77ea
commit
7ba1c66592
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user