sqlite: enable write-ahead log
Jes Olson j3s@c3f.net
Fri, 09 Feb 2024 16:07:34 -0600
2 files changed,
3 insertions(+),
4 deletions(-)
M
site.go
→
site.go
@@ -34,10 +34,9 @@ }
// New returns a fully populated & ready for action Site func New() *Site { - title := "vore" - db := sqlite.New(title + ".db") + db := sqlite.New("vore.db?_pragma=journal_mode(WAL)") s := Site{ - title: title, + title: "vore", reaper: reaper.New(db), db: db, }