From 8b841ccc512e3257dcd80fd8362909248945688b Mon Sep 17 00:00:00 2001 From: Simon Rupf Date: Sat, 12 Jun 2021 20:40:17 +0200 Subject: [PATCH] Reduce batch size for photo processing to reduce memory usage --- src/Database/PostUpdate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()]);