From 6e7fc67d66c955d0b5c9333ff542dd58cca681bc Mon Sep 17 00:00:00 2001 From: kim Date: Fri, 4 Oct 2024 13:30:56 +0100 Subject: [PATCH] remove the pragma optimize analysis limit on connection close --- internal/db/sqlite/driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/db/sqlite/driver.go b/internal/db/sqlite/driver.go index ca8ccf8ca7..bbf0fa6653 100644 --- a/internal/db/sqlite/driver.go +++ b/internal/db/sqlite/driver.go @@ -112,7 +112,7 @@ func (c *sqliteConn) Close() (err error) { raw := c.connIface.(sqlite3driver.Conn).Raw() // see: https://www.sqlite.org/pragma.html#pragma_optimize - const onClose = "PRAGMA analysis_limit=1000; PRAGMA optimize;" + const onClose = "PRAGMA optimize;" _ = raw.Exec(onClose) // Finally, close.