Reduce batch size for photo processing to reduce memory usage

This commit is contained in:
Simon Rupf 2021-06-12 20:40:17 +02:00
parent 315dddbcb9
commit 8b841ccc51

View File

@ -740,7 +740,7 @@ class PostUpdate
Logger::info('Start', ['rest' => DBA::count('photo', $condition)]); Logger::info('Start', ['rest' => DBA::count('photo', $condition)]);
$rows = 0; $rows = 0;
$photos = DBA::select('photo', [], $condition, ['limit' => 10000]); $photos = DBA::select('photo', [], $condition, ['limit' => 100]);
if (DBA::errorNo() != 0) { if (DBA::errorNo() != 0) {
Logger::error('Database error', ['no' => DBA::errorNo(), 'message' => DBA::errorMessage()]); Logger::error('Database error', ['no' => DBA::errorNo(), 'message' => DBA::errorMessage()]);