cron/compliance.php: Smaller batches.
[platal.git] / 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;