mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[performance] remove the pragma optimize analysis limit on connection close (#3386)
This commit is contained in:
@@ -112,7 +112,7 @@ func (c *sqliteConn) Close() (err error) {
|
|||||||
raw := c.connIface.(sqlite3driver.Conn).Raw()
|
raw := c.connIface.(sqlite3driver.Conn).Raw()
|
||||||
|
|
||||||
// see: https://www.sqlite.org/pragma.html#pragma_optimize
|
// see: https://www.sqlite.org/pragma.html#pragma_optimize
|
||||||
const onClose = "PRAGMA analysis_limit=1000; PRAGMA optimize;"
|
const onClose = "PRAGMA optimize;"
|
||||||
_ = raw.Exec(onClose)
|
_ = raw.Exec(onClose)
|
||||||
|
|
||||||
// Finally, close.
|
// Finally, close.
|
||||||
|
Reference in New Issue
Block a user