From f550f596fab457e5e3c6944ffada903b79efae82 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Fri, 4 Oct 2024 17:05:42 +0000 Subject: [PATCH] [performance] remove the pragma optimize analysis limit on connection close (#3386) --- 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 ca8ccf8ca..bbf0fa665 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.