mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
refactor(server): use constant for external library batch size (#16685)
This commit is contained in:
parent
fdf2331c82
commit
9959755dda
@ -359,7 +359,7 @@ export class LibraryService extends BaseService {
|
||||
for await (const asset of assets) {
|
||||
chunk.push(asset.id);
|
||||
|
||||
if (chunk.length >= 10_000) {
|
||||
if (chunk.length >= JOBS_LIBRARY_PAGINATION_SIZE) {
|
||||
await queueChunk();
|
||||
}
|
||||
}
|
||||
@ -736,7 +736,7 @@ export class LibraryService extends BaseService {
|
||||
|
||||
for await (const asset of existingAssets) {
|
||||
chunk.push(asset.id);
|
||||
if (chunk.length === 10_000) {
|
||||
if (chunk.length === JOBS_LIBRARY_PAGINATION_SIZE) {
|
||||
await queueChunk();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user