1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00
immich/server/test
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
..
api fix(server): strip metadata from thumbnails (#4438) 2023-12-26 16:27:51 -05:00
assets@948f353e3c fix(server,web): correctly remove metadata from shared links (#4464) 2023-10-14 01:46:30 +00:00
e2e fix(server): strip metadata from thumbnails (#4438) 2023-12-26 16:27:51 -05:00
fixtures feat(server): delete unnecessary encoded videos (#6027) 2023-12-27 23:34:00 -06:00
repositories feat(server): Enqueue jobs in bulk (#5974) 2024-01-01 15:45:42 -05:00
docker-compose.server-e2e.yml test(cli): e2e testing (#5101) 2023-12-18 20:29:26 -06:00
global-setup.js refactor(server)*: tsconfigs (#2689) 2023-06-08 10:01:07 -05:00
index.ts chore(server): organize imports (#2779) 2023-06-16 19:54:17 +00:00
test-utils.ts feat(server): Enqueue jobs in bulk (#5974) 2024-01-01 15:45:42 -05:00