Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce memory usage during folder scanning
When scanning a folder, a lot of DB data is copied to the cache to reduce the DB access bottleneck. This doesn't make the folder scanning scalable. We adopt a more lazy approach: we only fetch the track-related data if something has changed in the folder. Indeed, if nothing has changed at the folder level, we don't go further and don't scan the tracks. This is expected to be the most common use case, since tracks are not likely to be modified.
- Loading branch information
1 parent
d7870ef
commit 945237b
Showing
1 changed file
with
33 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters