0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-02-11 01:18:24 -05:00
immich/server/src
Michael Manganiello 4a5b8c3770
feat(server): Enqueue jobs in bulk (#5974)
* feat(server): Enqueue jobs in bulk

The Job Repository now has a `queueAll` method, that enqueues messages
in bulk (using BullMQ's
[`addBulk`](https://docs.bullmq.io/guide/queues/adding-bulks)),
improving performance when many jobs must be enqueued within the same
operation.

Primary change is in `src/domain/job/job.service.ts`, and other services
have been refactored to use `queueAll` when useful.

As a simple local benchmark, triggering a full thumbnail generation
process over a library of ~1,200 assets and ~350 faces went from
**~600ms** to **~250ms**.

* fix: Review feedback
2024-01-01 15:45:42 -05:00
..
domain feat(server): Enqueue jobs in bulk (#5974) 2024-01-01 15:45:42 -05:00
immich fix(server): init library scanning on start up (#5951) 2023-12-23 20:46:42 +00:00
immich-admin refactor(server): auth dto (#5593) 2023-12-09 23:34:12 -05:00
infra feat(server): Enqueue jobs in bulk (#5974) 2024-01-01 15:45:42 -05:00
microservices refactor(server): simplify config init process (#5702) 2024-01-01 13:16:44 -05:00
main.ts fix(server): immich command (#5408) 2023-11-30 14:59:47 -06:00