Skip to content

Commit

Permalink
[performance] remove the pragma optimize analysis limit on connection…
Browse files Browse the repository at this point in the history
… close (#3386)
  • Loading branch information
NyaaaWhatsUpDoc authored Oct 4, 2024
1 parent 23b6d2c commit f550f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/db/sqlite/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f550f59

Please sign in to comment.