Commit 40fccd0
authored
fix(peewee): enable WAL journal mode for SQLite (#132)
* fix(peewee): enable WAL journal mode for SQLite
PeeweeStorage was using SQLite's default DELETE journal mode, while
SqliteStorage already had WAL enabled. Without WAL, concurrent read/write
access from threaded Flask causes frequent "database is locked" errors,
leading to 500 responses and watcher retry storms.
* fix: remove unnecessary wal_autocheckpoint override
SQLite's default of 1000 pages is fine; setting 100 would cause more
frequent checkpointing and unnecessary IO.1 parent d628a9a commit 40fccd0
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| |||
0 commit comments