From: Simon Rupf Date: Sat, 12 Jun 2021 18:40:17 +0000 (+0200) Subject: Reduce batch size for photo processing to reduce memory usage X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8b841ccc512e3257dcd80fd8362909248945688b;p=friendica.git Reduce batch size for photo processing to reduce memory usage --- diff --git a/src/Database/PostUpdate.php b/src/Database/PostUpdate.php index 3e2627b9a9..ab72848ffa 100644 --- a/src/Database/PostUpdate.php +++ b/src/Database/PostUpdate.php @@ -740,7 +740,7 @@ class PostUpdate Logger::info('Start', ['rest' => DBA::count('photo', $condition)]); $rows = 0; - $photos = DBA::select('photo', [], $condition, ['limit' => 10000]); + $photos = DBA::select('photo', [], $condition, ['limit' => 100]); if (DBA::errorNo() != 0) { Logger::error('Database error', ['no' => DBA::errorNo(), 'message' => DBA::errorMessage()]);