diff --git a/utils/statistics_server_v3.py b/utils/statistics_server_v3.py index 04aaf1a..551c148 100644 --- a/utils/statistics_server_v3.py +++ b/utils/statistics_server_v3.py @@ -19,6 +19,8 @@ def get_db_connection(): if not hasattr(_local_storage, 'connection'): _local_storage.connection = sqlite3.connect(profits_database, check_same_thread=False) _local_storage.connection.row_factory = sqlite3.Row + _local_storage.connection.execute("PRAGMA journal_mode=WAL") + _local_storage.connection.execute("PRAGMA synchronous=NORMAL") _local_storage.created_at = current_time return _local_storage.connection