diff --git a/trytond/trytond/backend/sqlite/database.py b/trytond/trytond/backend/sqlite/database.py index 51e796358f..ed8dc264e7 100644 --- a/trytond/trytond/backend/sqlite/database.py +++ b/trytond/trytond/backend/sqlite/database.py @@ -523,6 +523,9 @@ class Database(DatabaseInterface): and logger.isEnabledFor(logging.DEBUG)): self._conn.set_trace_callback(logger.debug) self._conn.execute('PRAGMA foreign_keys = ON') + self._conn.execute('PRAGMA journal_mode = WAL') + self._conn.execute('PRAGMA synchronous = NORMAL') + self._conn.execute('PRAGMA optimize') return self def _make_uri(self):