Skip to content

Commit

Permalink
Change the WAL journal mode for the database beck to the default DELE…
Browse files Browse the repository at this point in the history
…TE mode
  • Loading branch information
kozlovsky committed May 23, 2024
1 parent 828bb79 commit 722f2f1
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 722f2f1

Please sign in to comment.