[PR #21052] chore(server): Improve add to multiple albums via bulk checks and inserts #16730

Closed
opened 2026-02-05 16:09:55 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/immich-app/immich/pull/21052

State: closed
Merged: Yes


Description

Improve albumService.addAssetsToAlbums by bulk checking album and asset permissions, then bulk inserting the album_asset entries.

Improves upon #20072

How Has This Been Tested?

Adding assets to multiple albums in different combinations (no access, duplicates, shared album/viewer only)

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable
  • I have no unrelated changes in the PR.
  • I have confirmed that any new dependencies are strictly necessary.
  • I have written tests for new code (if applicable)
  • I have followed naming conventions/patterns in the surrounding code
  • All code in src/services/ uses repositories implementations for database calls, filesystem operations, etc.
  • All code in src/repositories/ is pretty basic/simple and does not have any immich specific logic (that belongs in src/services/)
**Original Pull Request:** https://github.com/immich-app/immich/pull/21052 **State:** closed **Merged:** Yes --- ## Description Improve albumService.addAssetsToAlbums by bulk checking album and asset permissions, then bulk inserting the album_asset entries. Improves upon #20072 ## How Has This Been Tested? Adding assets to multiple albums in different combinations (no access, duplicates, shared album/viewer only) ## Checklist: - [ ] I have performed a self-review of my own code - [ ] I have made corresponding changes to the documentation if applicable - [ ] I have no unrelated changes in the PR. - [ ] I have confirmed that any new dependencies are strictly necessary. - [ ] I have written tests for new code (if applicable) - [ ] I have followed naming conventions/patterns in the surrounding code - [ ] All code in `src/services/` uses repositories implementations for database calls, filesystem operations, etc. - [ ] All code in `src/repositories/` is pretty basic/simple and does not have any immich specific logic (that belongs in `src/services/`)
OVERLORD added the pull-request label 2026-02-05 16:09:55 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#16730