feat(activity): add SQLite PRAGMA and connection pool config to cache.go #289

Closed
opened 2026-07-07 08:02:49 +00:00 by the.auditor · 0 comments
Owner

Cache.Open() in internal/activity/cache.go doesn't configure SQLite PRAGMAs or connection pool limits. Common recommendations for embedded SQLite:

  • PRAGMA journal_mode=WAL — concurrent read/write performance
  • PRAGMA foreign_keys=ON — referential integrity
  • db.SetMaxOpenConns(1) — prevent SQLITE_BUSY from concurrent writes

Ref: PR #288

`Cache.Open()` in `internal/activity/cache.go` doesn't configure SQLite PRAGMAs or connection pool limits. Common recommendations for embedded SQLite: - `PRAGMA journal_mode=WAL` — concurrent read/write performance - `PRAGMA foreign_keys=ON` — referential integrity - `db.SetMaxOpenConns(1)` — prevent SQLITE_BUSY from concurrent writes Ref: PR #288
fuzzy added this to the Steeper project 2026-07-07 09:35:08 +00:00
fuzzy self-assigned this 2026-07-07 09:35:10 +00:00
fuzzy closed this issue 2026-07-08 05:06:11 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/steeper#289
No description provided.