mirror of
https://github.com/immich-app/immich.git
synced 2025-06-01 04:36:19 -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) {
|
for await (const asset of assets) {
|
||||||
chunk.push(asset.id);
|
chunk.push(asset.id);
|
||||||
|
|
||||||
if (chunk.length >= 10_000) {
|
if (chunk.length >= JOBS_LIBRARY_PAGINATION_SIZE) {
|
||||||
await queueChunk();
|
await queueChunk();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -736,7 +736,7 @@ export class LibraryService extends BaseService {
|
|||||||
|
|
||||||
for await (const asset of existingAssets) {
|
for await (const asset of existingAssets) {
|
||||||
chunk.push(asset.id);
|
chunk.push(asset.id);
|
||||||
if (chunk.length === 10_000) {
|
if (chunk.length === JOBS_LIBRARY_PAGINATION_SIZE) {
|
||||||
await queueChunk();
|
await queueChunk();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user