Document or reconsider SQLite synchronous=0 in production #20
Labels
No Label
ai-changes-requested
ai-failed
ai-merged
ai-pr-opened
ai-reviewed
ai-reviewing
ai-reviewing
ai-working
bug
enhancement
evolution
performance
phase-0
phase-1a
phase-1b
phase-1c
phase-1d
security
tech-debt
todo
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-database#20
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
`app/db_engine.py:36` — `pragmas={"synchronous": 0}` means no fsync on writes. On crash, database could be corrupted. Combined with WAL mode, this may be intentional but should be documented.
Priority: medium
PR #49 opened: #49
Added a block comment in
app/db_engine.pyabove the SQLite pragmas explaining:synchronous=0skips fsync for dev write performance, with data-loss risk on hard crash