Skip to content

Index: In-memory Files/Photos lookup tables mark themselves as “already loaded” #5235

Closed

Description

@lastzero

When files are imported via WebDAV/Web Upload, the next library index may behave as if "Complete Rescan" were enabled, causing every file to be reprocessed:

Root Cause: The in-memory Files/Photos lookup tables mark themselves as “already loaded” merely because their maps are non-empty. WebDAV/Upload flows append entries to those maps before Init() hydrates them from the database, so the next index run trusts an incomplete cache and treats nearly every file as new.

Probable Fix: Track whether the cache was populated via Init() (loaded flag) and reset it in Done(). This guarantees that the first real index hydrates from the DB and subsequent runs correctly skip unchanged files, eliminating the unexpected full rescan.

Activity

  1. self-assigned this
    on Sep 30, 2025
  2. added theissue type on Sep 30, 2025
  3. moved this to Development 🐝 in Roadmap 🚀✨on Sep 30, 2025
  4. moved this from Development 🐝 to Preview 🐳 in Roadmap 🚀✨on Sep 30, 2025
  5. added
    testedChanges have been tested successfully
    and removed
    please-testReady for manual testing & feedback
    on Oct 13, 2025
  6. moved this from Preview 🐳 to Release 🌈 in Roadmap 🚀✨on Dec 1, 2025
  7. added
    releasedAvailable in a stable release
    and removed
    testedChanges have been tested successfully
    on Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

releasedAvailable in a stable releaseuxImpacts User Experience

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions