Skip to content

fix(server): improve library scan queuing performance - #4418

Merged
jrasm91 merged 12 commits into
mainfrom
fix/inline-offline-asset
Oct 10, 2023
Merged

jrasm91 merged 12 commits into
mainfrom
fix/inline-offline-asset

Conversation

@etnoy

@etnoy etnoy commented Oct 10, 2023 •

Copy link
Copy Markdown
Collaborator

Here, we mark library assets as offline in a single db query rather than queueing individual jobs. The performance improvement is immense. We also removed all queue preparation steps that had quadratic complexity, greatly improving performance for very large libraries.

@vercel

vercel Bot commented Oct 10, 2023 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
immich ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2023 9:51pm

@etnoy
etnoy requested a review from jrasm91 October 10, 2023 12:47
Comment thread server/src/domain/library/library.service.ts
@etnoy etnoy changed the title fix(server): Mark assets as offline in a single db call fix(server): improve library scan queuing performance Oct 10, 2023
@jrasm91
jrasm91 merged commit 56eb7bf into main Oct 10, 2023
@jrasm91
jrasm91 deleted the fix/inline-offline-asset branch October 10, 2023 22:59
@etnoy etnoy mentioned this pull request Oct 11, 2023
1 of 3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants