Simplify Library Rescan #2435
imnotjames
started this conversation in
Backend
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem Statement
The library rescan logic is duplicated between multiple locations - in particular with a manual rescan vs turning on the watch feature and dropping a file. This leads to two different behaviors and two locations where we'd need to benchmark and optimize to handle larger libraries more effectively.
Goals
Non-Goals
watchlogic across the network this seems kinda outside the scopeProposed Solution
Move the library rescan code & the
monitoringservices over to thewatchservices.Then, on rescan emit watcher events to the watcher
processEvents:ENTRY_CREATEENTRY_DELETEENTRY_MODIFYThen, merge in all of the rescan logic we can into the file event processor.
Ensure transaction boundaries on each event rather than the entire rescan.
All reactions