diff --git a/src/tt/db.py b/src/tt/db.py index 50a7d7e..f148b68 100644 --- a/src/tt/db.py +++ b/src/tt/db.py @@ -10,7 +10,14 @@ from peewee import ( TextField, ) -db = SqliteDatabase("tasks.db") +db = SqliteDatabase( + "tasks.db", + pragmas={ + "journal_mode": "wal", + "synchronous": "normal", + "foreign_keys": 1, + }, +) class TaskStatus(Enum):