Immich vs PhotoPrism: Storage Layout and Indexing
Bottom line: Immich keeps originals on disk in a predictable per-user tree and builds a Postgres index with a vector column; PhotoPrism keeps originals read-only and stores everything in a sidecar index. Immich is faster to search and heavier on the database; PhotoPrism is gentler on the files but slower at scale.
Storage layout
| Aspect | Immich | PhotoPrism |
|---|---|---|
| Originals | library/<user>/<yyyy>/<mm>/ |
wherever you mount, untouched |
| Thumbnails | generated under thumbs/ |
under cache/ |
| Index | Postgres + pgvecto.rs | SQLite sidecar |
| Deletes | move to trash, then purge | remove index row, file stays |
Immich manages the tree; PhotoPrism indexes yours. That inversion is the whole trade: Immich is predictable and rebuildable, PhotoPrism cannot damage originals but depends on you to keep them tidy.
Faces and search
Immich runs a recognition model per upload and stores embeddings in the vector column, so “photos of Anna at the beach” returns in about 200 ms at 50k assets. PhotoPrism’s face clustering is comparable in quality and considerably slower to reindex after a change.
Resource profile at 50k photos
| Metric | Immich | PhotoPrism |
|---|---|---|
| RAM steady | 1.6 GB | 900 MB |
| Index build | 4 h (GPU-assisted 1 h) | 11 h |
| DB size | 2.4 GB | 380 MB |
Immich’s Postgres is the operational weight: back it up like production data, because the vector index is not rebuildable without re-running recognition over every file.
Backups
Immich: pg_dump plus the library/ tree, in one consistent pass — the DB and files must match. PhotoPrism: originals only; the sidecar index can be rebuilt, at the cost of days.
Choosing
Many users, mobile auto-upload, heavy search: Immich. Existing archive you do not want software touching, light use: PhotoPrism. Running both against the same originals is common and works — Immich as the app, PhotoPrism as a read-only browser.
Operating notes
The decision is who owns the file tree. Immich does: library/<user>/<yyyy>/<mm>/, predictable and rebuildable. PhotoPrism indexes yours read-only and cannot damage originals, but depends on you to keep them tidy.
1 | Immich: Postgres + pgvecto.rs, ~200 ms search at 50k assets |
Backups differ
Immich: pg_dump plus library/ in one consistent pass — the vector index is not rebuildable without re-running recognition over every file. PhotoPrism: originals only, sidecar rebuildable at the cost of days.
Choose by use
Many users, mobile auto-upload, heavy search: Immich. Existing archive software must not touch, light use: PhotoPrism.
Both
Immich as the app, PhotoPrism as a read-only browser over the same originals. Common and workable.
FAQ
Where does Immich store original photos on disk?
Immich stores originals in a predictable per-user tree at library/<user>/<yyyy>/<mm>/. It manages this tree itself, which makes the layout predictable and rebuildable. Thumbnails are generated under thumbs/. PhotoPrism, by contrast, leaves originals wherever you mount them, untouched.
Can PhotoPrism delete or modify my original photo files?
No. PhotoPrism indexes your originals read-only and cannot damage them. When you delete a photo, it removes the index row while the file stays on disk. The trade-off is that PhotoPrism depends on you to keep the file tree tidy.
Why does Immich use so much more RAM and database space than PhotoPrism?
Immich runs a recognition model per upload and stores embeddings in a Postgres vector column via pgvecto.rs. At 50k photos this means 1.6 GB steady RAM and a 2.4 GB database, versus 900 MB and 380 MB for PhotoPrism’s SQLite sidecar. That Postgres index is the operational weight Immich carries.
How do I back up Immich compared to PhotoPrism?
For Immich, run pg_dump plus the library/ tree in one consistent pass, because the DB and files must match. The vector index is not rebuildable without re-running recognition over every file. For PhotoPrism, back up originals only; the sidecar index can be rebuilt, at the cost of days.
Can I run Immich and PhotoPrism against the same photo library?
Yes, this is common and works. Run Immich as the app and PhotoPrism as a read-only browser over the same originals. PhotoPrism indexes your files without touching them, so it can safely sit alongside Immich’s managed tree.











