From ca462ac0056cfe434acc8b8faf50a439ce3f8c91 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sun, 29 Dec 2024 12:32:44 +0100 Subject: Remember to optimize the database --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index d9d20c4..53306d7 100644 --- a/main.go +++ b/main.go @@ -2700,6 +2700,9 @@ func main() { // Note that the database object has a closing finalizer, // we just additionally print any errors coming from there. if db != nil { + if _, err := db.Exec(`PRAGMA optimize`); err != nil { + log.Println(err) + } if err := db.Close(); err != nil { log.Println(err) } -- cgit v1.2.3-70-g09d2