use journal mode WAL for expand db use

This commit is contained in:
Alireza Ahmadi
2026-03-08 23:18:42 +01:00
parent 6ba547331e
commit 14ea27292f
3 changed files with 23 additions and 1 deletions
+2
View File
@@ -29,6 +29,8 @@ func (c *CronJob) Start(loc *time.Location, trafficAge int) error {
}
// Start core if it is not running
c.cron.AddJob("@every 5s", NewCheckCoreJob())
// database WAL checkpoint
c.cron.AddJob("@every 10m", NewWALCheckpointJob())
}()
return nil