Enable write ahead log mode in SqliteSaver and AsyncSqliteSaver.

This commit is contained in:
Andrew Nguonly
2024-05-17 10:41:20 -07:00
parent c056ec9f54
commit 93897c6df8
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -191,6 +191,7 @@ class AsyncSqliteSaver(BaseCheckpointSaver, AbstractAsyncContextManager):
await self.conn
async with self.conn.executescript(
"""
PRAGMA journal_mode=WAL;
CREATE TABLE IF NOT EXISTS checkpoints (
thread_id TEXT NOT NULL,
thread_ts TEXT NOT NULL,
+1
View File
@@ -159,6 +159,7 @@ class SqliteSaver(BaseCheckpointSaver, AbstractContextManager):
self.conn.executescript(
"""
PRAGMA journal_mode=WAL;
CREATE TABLE IF NOT EXISTS checkpoints (
thread_id TEXT NOT NULL,
thread_ts TEXT NOT NULL,