Skip to content

Comments

optimize DB access to avoid write locks#479

Merged
wojcik91 merged 9 commits intodevfrom
fix_database_locking_errors
Jul 9, 2025
Merged

optimize DB access to avoid write locks#479
wojcik91 merged 9 commits intodevfrom
fix_database_locking_errors

Conversation

@wojcik91
Copy link
Contributor

@wojcik91 wojcik91 commented Jul 9, 2025

Add some SQLite optimizations to avoid database locks:

  • reduce frequency of stats purges
  • enable WAL journaling mode
  • use more transactions

This also changes app startup to setup logging first to fix missing DB initialization logs.

Resolves #476

@wojcik91 wojcik91 requested a review from moubctez July 9, 2025 08:27
@wojcik91 wojcik91 self-assigned this Jul 9, 2025
@wojcik91 wojcik91 merged commit 263ea1d into dev Jul 9, 2025
2 checks passed
@wojcik91 wojcik91 deleted the fix_database_locking_errors branch July 9, 2025 11:24
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.

2 participants