Skip to content

Commit

Permalink
Merge pull request #8037 from kozlovsky/fix/use_default_journal_mode
Browse files Browse the repository at this point in the history
Change the WAL journal mode for the database beck to the default DELETE mode
  • Loading branch information
kozlovsky authored May 24, 2024
2 parents 298b4f0 + 5c2800a commit 37b825f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tribler/core/components/database/db/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def __init__(
@self.db.on_connect
def on_connect(_, connection):
cursor = connection.cursor()
cursor.execute("PRAGMA journal_mode = WAL")
cursor.execute("PRAGMA journal_mode = DELETE")
cursor.execute("PRAGMA synchronous = NORMAL")
cursor.execute("PRAGMA temp_store = MEMORY")
cursor.execute("PRAGMA foreign_keys = ON")
Expand Down

0 comments on commit 37b825f

Please sign in to comment.