Merge pull request #10399 from elrido/photo-md5

Reduce batch size for photo processing to reduce memory usage
This commit is contained in:
Michael Vogel 2021-06-12 21:35:02 +02:00 committed by GitHub
commit 90a9cefd9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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()]);