cron/compliance.php: Smaller batches.
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 4 Jan 2014 23:23:48 +0000 (00:23 +0100)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Sat, 4 Jan 2014 23:24:07 +0000 (00:24 +0100)
bin/cron/compliance.php

index d8e3ae4..7d2cfef 100755 (executable)
@@ -55,7 +55,7 @@ function discardExpiredSessions($userPerms, $retentionPeriod, $minimalBacklog) {
            WHERE  state = {?} AND is_admin = {?}",
         $state, $isAdmin);
 
-    $batchSize = 500;
+    $batchSize = 100;
     $nbBatches = 0;
     $affectedRows = 0;