mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor(server): use constant for external library batch size (#16685)
This commit is contained in:
parent
fdf2331c82
commit
9959755dda
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue