Skip to content

perf(server): scan libraries with walkrs - #33527

Merged
mertalev merged 2 commits into
mainfrom
feat/server-experimental-scan
Nov 26, 2026
Merged

mertalev merged 2 commits into
mainfrom
feat/server-experimental-scan

Conversation

@jrasm91

@jrasm91 jrasm91 commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Scan external libraries with @immich/walkrs instead of fast-glob, which streams with backpressure and fixes the backslash and unreadable-folder scan bugs. At 5M assets with nested paths a rescan takes 107s instead of 203s and the worker peaks at 1.4 GiB instead of 3.4 GiB.

@immich-push-o-matic immich-push-o-matic Bot added documentation Improvements or additions to documentation 🗄️server labels Nov 20, 2026
@immich-push-o-matic

immich-push-o-matic Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

📱 Android release APK (universal) — 9f4afb63495770f385622ef72b4130da0e255653

Download: https://github.com/immich-app/immich/actions/runs/45743518607/artifacts/15082312886

QR code QR code

Installs as a separate app (applicationId app.alextran.immich.pr33527), so it coexists with the Play Store version and any other PR builds.

@jrasm91
jrasm91 force-pushed the feat/server-experimental-scan branch from 7e37b7e to 6fb24fa Compare November 21, 2026 13:58
@jrasm91 jrasm91 changed the title feat: experimental library scanner perf(server): scan libraries with walkrs Nov 21, 2026
@immich-push-o-matic immich-push-o-matic Bot removed the documentation Improvements or additions to documentation label Nov 21, 2026
@jrasm91
jrasm91 marked this pull request as ready for review November 21, 2026 14:00
@jrasm91
jrasm91 force-pushed the feat/server-experimental-scan branch from 6fb24fa to 352e5f2 Compare November 23, 2026 02:43
@mertalev
mertalev force-pushed the feat/server-experimental-scan branch from 352e5f2 to a738a36 Compare November 26, 2026 02:24
* perf(server): library scan merge

* perf(server): offline out-of-library assets in the scan merge

* test(server): library scan merge medium tests

* refactor(server): walk import paths in walkrs

* fix(server): library scan merge review findings

* refactor(server): match library paths in walkrs

* chore(server): remove fast-glob

* chore(server): update walkrs to 0.0.17

* perf(server): apply library scan changes without a check job

* perf(server): page through library assets on a byte-order index

* chore(server): use literal for trash status

* chore(server): regenerate sql

---------

Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
@mertalev
mertalev enabled auto-merge (squash) November 26, 2026 02:38
@mertalev
mertalev merged commit c825d07 into main Nov 26, 2026
65 checks passed
@mertalev
mertalev deleted the feat/server-experimental-scan branch November 26, 2026 02:52
@GiorgioMendieta GiorgioMendieta mentioned this pull request Nov 26, 2026
@etnoy

etnoy commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Finally!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants