1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-09 23:17:29 +02:00

refactor(server): use constant for external library batch size (#16685)

This commit is contained in:
Jonathan Jogenfors
2025-03-07 12:29:06 +01:00
committed by GitHub
parent fdf2331c82
commit 9959755dda

View File

@@ -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();
}
}