Files
Carl Schwan e31d01d381 perf(preview-migration): Batch object store preview migration
Set the location of migrated previews before inserting them, resolving
it once per bucket and batch, instead of updating every preview after
its insert. Orphaned previews are deleted from the object store by urn
directly, with their filecache rows removed in bulk.

Migrating 100 000 previews on an object store primary storage with
PostgreSQL now takes 24s instead of 123s.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2026-10-14 09:42:46 +02:00
..