docs(07-01): complete queue persistence optimization plan

- SUMMARY.md with incremental persistence + Phase 2 dedup details
- STATE.md updated: Phase 7 complete (2/2 plans), decisions recorded
- ROADMAP.md updated: Phase 7 marked complete
- REQUIREMENTS.md: PERF-01, PERF-02 marked complete
This commit is contained in:
2026-03-04 21:00:31 -05:00
parent ced58fe6a9
commit 6f79c77b58
3 changed files with 119 additions and 22 deletions
+4 -4
View File
@@ -28,8 +28,8 @@ Requirements for the consolidation milestone. Each maps to roadmap phases.
### Performance
- [ ] **PERF-01**: Queue single-track mutations (add, remove) use incremental INSERT/DELETE via existing sqlc queries instead of full table rewrite
- [ ] **PERF-02**: SetQueue Phase 2 (resolveRemainingTracks) skips file paths already resolved in Phase 1, avoiding redundant database lookups
- [x] **PERF-01**: Queue single-track mutations (add, remove) use incremental INSERT/DELETE via existing sqlc queries instead of full table rewrite
- [x] **PERF-02**: SetQueue Phase 2 (resolveRemainingTracks) skips file paths already resolved in Phase 1, avoiding redundant database lookups
- [x] **PERF-03**: Library store constructor no longer calls eagerFetch(); data loads lazily on first access via existing getTracks()/getAlbums()/etc. getters
- [x] **PERF-04**: SQLite connection applies performance PRAGMAs (synchronous=NORMAL, cache_size=-8000, mmap_size=67108864) at database open
- [ ] **PERF-05**: Frontend track/album lists use Lit repeat() directive with stable keys (filePath/albumId) for efficient DOM reuse, and store notifications are debounced via queueMicrotask() during rapid updates
@@ -102,8 +102,8 @@ Which phases cover which requirements. Updated during roadmap creation.
| QUAL-02 | Phase 6: SQL Consolidation & Code Quality | Complete |
| QUAL-03 | Phase 6: SQL Consolidation & Code Quality | Complete |
| QUAL-04 | Phase 6: SQL Consolidation & Code Quality | Complete |
| PERF-01 | Phase 7: Backend Performance | Pending |
| PERF-02 | Phase 7: Backend Performance | Pending |
| PERF-01 | Phase 7: Backend Performance | Complete |
| PERF-02 | Phase 7: Backend Performance | Complete |
| PERF-03 | Phase 7: Backend Performance | Complete |
| PERF-04 | Phase 3: Test Infrastructure | Complete |
| PERF-05 | Phase 8: Frontend Performance & UX | Pending |