Merge pull request #3595 from 0xDEADFED5/sqlite_pragmas

update SQLite PRAGMAs for faster DB
This commit is contained in:
Griatch 2024-08-16 11:47:19 +02:00 committed by GitHub
commit 3e006cff1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -284,9 +284,10 @@ class EvenniaServerService(MultiService):
):
cursor = connection.cursor()
cursor.execute("PRAGMA cache_size=10000")
cursor.execute("PRAGMA synchronous=OFF")
cursor.execute("PRAGMA synchronous=1")
cursor.execute("PRAGMA count_changes=OFF")
cursor.execute("PRAGMA temp_store=2")
cursor.execute("PRAGMA journal_mode=WAL")
def update_defaults(self):
"""