]> git.mxchange.org Git - friendica.git/commitdiff
Reduce batch size for photo processing to reduce memory usage
authorSimon Rupf <simon@rupf.net>
Sat, 12 Jun 2021 18:40:17 +0000 (20:40 +0200)
committerSimon Rupf <simon@rupf.net>
Sat, 12 Jun 2021 18:40:17 +0000 (20:40 +0200)
src/Database/PostUpdate.php

index 3e2627b9a9f5f585fd06af4fef7f9244d5f79172..ab72848ffaf6b87a831e7fee7a2b7f0400f9bab3 100644 (file)
@@ -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()]);