浏览代码

Enable SQLite WAL journaling

Lukas Goldschmidt 1 月之前
父节点
当前提交
76fae45a4f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/trader_mcp/strategy_store.py

+ 2 - 0
src/trader_mcp/strategy_store.py

@@ -44,6 +44,8 @@ def get_connection() -> sqlite3.Connection:
     conn = sqlite3.connect(DB_PATH)
     conn.row_factory = sqlite3.Row
     conn.execute("PRAGMA foreign_keys = ON")
+    conn.execute("PRAGMA journal_mode = WAL")
+    conn.execute("PRAGMA synchronous = NORMAL")
     return conn