Skip to content

Feature/sqlite song database#792

Open
safepay wants to merge 8 commits intovicwomg:masterfrom
safepay:feature/sqlite-song-database
Open

Feature/sqlite song database#792
safepay wants to merge 8 commits intovicwomg:masterfrom
safepay:feature/sqlite-song-database

Conversation

@safepay
Copy link
Collaborator

@safepay safepay commented Mar 3, 2026

Summary

Introduces a persistent SQLite database as a song library cache, replacing the blocking full-disk scan at startup. #641

Core changes:

  • KaraokeDatabase — SQLite-backed song store with add/delete/move operations that preserve song identity across renames
  • LibraryScanner — Background filesystem reconciliation that syncs the DB with what's on disk
  • Instant startup — First launch blocks while building the DB; subsequent launches load from SQLite instantly and reconcile in the background
  • Deletion guard — Circuit breaker prevents mass deletion when a song drive is temporarily unmounted or unavailable
  • Info page simplification — Streamlined for usability; direct login replaces the separate login page

Prepares for: enhanced features built on song metadata (favourites, play counts, artist browsing).

Test plan

  • Fresh start: verify DB is created and songs are indexed on first launch
  • Restart: verify instant startup with background sync
  • Download a song: confirm it appears in the DB immediately
  • Rename a song via edit page: confirm the song ID is preserved

safepay and others added 7 commits March 3, 2026 14:08
Replace blocking disk scan at startup with a persistent SQLite cache.
Returning users load the full library from DB instantly; filesystem
reconciliation runs in a background thread. A circuit breaker prevents
mass deletion when the song drive is unmounted.

New modules: KaraokeDatabase, LibraryScanner.
@safepay safepay linked an issue Mar 4, 2026 that may be closed by this pull request
@safepay safepay requested a review from vicwomg March 4, 2026 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Use database for song information storage

1 participant