Skip to content

fix: cache db bloat - #48

Merged
PyXiion merged 3 commits into
mainfrom
fix/cache-db-bloat
Jul 30, 2026
Merged

fix: cache db bloat#48
PyXiion merged 3 commits into
mainfrom
fix/cache-db-bloat

Conversation

@PyXiion

@PyXiion PyXiion commented Jul 30, 2026

Copy link
Copy Markdown
Owner

No description provided.

PyXiion added 3 commits July 30, 2026 15:03
- Replace BadgeState/visuals.ts with unified ModState/controls.ts
- Detail page: use controls.ts shared state machine, remove queueModWithDeps/batchToggleChecked
- Badge grid: use applyModState/handleClick, debounce (300ms) instead of requestAnimationFrame
- Collection page: single batch button with 4-state cycle (DEFAULT/CHECKED/INACTIVE/ACTIVE) + separate 'Activate only this pack' button
- Lifecycle: replace ROUTES array with DOM-based PAGE_KINDS page kind detection
- CSS: add collection bar/button styles, collection hoverable badges, hide native Steam subscribeCollection buttons
- Python bridge: add toggle_active/batch_toggle_active/fetch_mod_deps RPC methods
- Rollback optimistic mutations on RPC failure
…dic VACUUM

- PRAGMA auto_vacuum=INCREMENTAL on every connection
- WAL checkpoint (TRUNCATE) after every store_report() to reclaim WAL space
- PRAGMA incremental_vacuum after each write to reclaim freelist pages
- Full VACUUM when cache.db exceeds 10 MB (also upgrades old DBs to INCREMENTAL mode)
- VACUUM + WAL checkpoint in clear() so Clear Cache button reclaims disk
@PyXiion PyXiion changed the title Fix/cache db bloat fix: cache db bloat Jul 30, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 115 complexity · 0 duplication

Metric Results
Complexity 115
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@PyXiion
PyXiion merged commit a319de6 into main Jul 30, 2026
4 of 5 checks passed
@PyXiion
PyXiion deleted the fix/cache-db-bloat branch July 30, 2026 12:16
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.

1 participant