Philipp Hörist pushed to branch master at gajim / gajim


Commits:
7f2e56cd by Philipp Hörist at 2026-07-21T17:28:08+02:00
perf: Database: Remove analysis limit on shutdown

This is recommended by SQLite since a few versions see 
https://www.sqlite.org/lang_analyze.html

Related #12768

- - - - -


1 changed file:

- gajim/common/storage/base.py


Changes:

=====================================
gajim/common/storage/base.py
=====================================
@@ -278,7 +278,6 @@ def _enable_secure_delete(self) -> None:
         self._con.execute("PRAGMA secure_delete=1")
 
     def _run_analyze(self) -> None:
-        self._con.execute("PRAGMA analysis_limit=400")
         self._con.execute("PRAGMA optimize")
 
     @property
@@ -428,9 +427,7 @@ def _on_db_connect(
         self._dbapi_execute_multiple(stmts, dbapi_connection=dbapi_connection)
 
     def _run_analyze(self) -> None:
-        self._dbapi_execute_multiple(
-            ["PRAGMA analysis_limit=400", "PRAGMA optimize", "VACUUM"]
-        )
+        self._dbapi_execute_multiple(["PRAGMA optimize", "VACUUM"])
 
     def get_user_version(self) -> int:
         with self._create_session() as s:



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/7f2e56cd46159fe46f2bc5380a8b6b5843d6b4d9

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/7f2e56cd46159fe46f2bc5380a8b6b5843d6b4d9
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to