Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): external library sync not working for large libraries #7759

Merged
merged 8 commits into from Mar 11, 2024

Conversation

mertalev
Copy link
Contributor

@mertalev mertalev commented Mar 9, 2024

The earlier improvement in #7685 only works correctly up to 65k assets. This PR changes the implementation to receive paginated assets and keep track of which are online / offline / new. At the end, online and offline assets have their state updated and new assets are scanned. This is a bit slower than #7685, but works with large libraries and should still use little memory.

Copy link

cloudflare-pages bot commented Mar 9, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 996d9fa
Status: ✅  Deploy successful!
Preview URL: https://f60054ab.immich.pages.dev
Branch Preview URL: https://fix-external-library-sync.immich.pages.dev

View logs

@mertalev mertalev added 🗄️server external-library Issues related to external libraries labels Mar 9, 2024
Copy link
Contributor

@jrasm91 jrasm91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

server/src/domain/library/library.service.ts Show resolved Hide resolved
server/src/infra/repositories/asset.repository.ts Outdated Show resolved Hide resolved
@mertalev mertalev merged commit 5bd597f into main Mar 11, 2024
24 checks passed
@mertalev mertalev deleted the fix/external-library-sync branch March 11, 2024 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-library Issues related to external libraries 🗄️server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants