Merge pull request #10399 from elrido/photo-md5
Reduce batch size for photo processing to reduce memory usage
This commit is contained in:
commit
90a9cefd9a
|
@ -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()]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user