]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/PostUpdate.php
Reduce batch size for photo processing to reduce memory usage
[friendica.git] / src / Database / PostUpdate.php
index 9659a862cfd344458e1e85fae5ee422f54aac258..ab72848ffaf6b87a831e7fee7a2b7f0400f9bab3 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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()]);