Reduce batch size for photo processing to reduce memory usage
This commit is contained in:
parent
315dddbcb9
commit
8b841ccc51
1 changed files with 1 additions and 1 deletions
|
@ -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()]);
|
||||
|
|
Loading…
Reference in a new issue