Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintain DB Integrity During Local Scan #17

Open
tkem opened this issue Aug 25, 2014 · 2 comments
Open

Maintain DB Integrity During Local Scan #17

tkem opened this issue Aug 25, 2014 · 2 comments
Labels
A-scan Area: Media scanning C-bug Category: This is a bug

Comments

@tkem
Copy link
Member

tkem commented Aug 25, 2014

Currently, unreferenced albums and artists are deleted in SQLiteLibrary.close(), so these may still show up after an SQLiteLibrary.flush(). Therefore, cleanup code should be moved to triggers.

@tkem
Copy link
Member Author

tkem commented Oct 10, 2014

It may also make sense to wrap library actions which involve multiple SQL queries (e.g. the new browsing implementation with seperate queries for albums and tracks) in explicit transactions.

@tkem
Copy link
Member Author

tkem commented Oct 12, 2014

May be more of an issue now that it is recommended to set scan_flush_threshold to a lower value.

@tkem tkem transferred this issue from mopidy/mopidy-local-sqlite Dec 9, 2019
@jodal jodal added A-scan Area: Media scanning C-bug Category: This is a bug labels Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-scan Area: Media scanning C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants