diff --git a/crates/agent/src/db.rs b/crates/agent/src/db.rs index 10ecb643b9a17dd6b02b47a416c526a662d12632..999c1d7f7a07298d19207425cbad87bb0f553849 100644 --- a/crates/agent/src/db.rs +++ b/crates/agent/src/db.rs @@ -382,6 +382,9 @@ impl ThreadsDatabase { Connection::open_file(&sqlite_path.to_string_lossy()) }; + connection.exec("PRAGMA journal_mode=WAL;")?()?; + connection.exec("PRAGMA busy_timeout=1000;")?()?; + connection.exec(indoc! {" CREATE TABLE IF NOT EXISTS threads ( id TEXT PRIMARY KEY,