Skip to content

Commit a64cde8

Browse files
committed
Revert "Try without pragmas"
This reverts commit 29157ac.
1 parent 3da1b23 commit a64cde8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

crates/corro-types/src/sqlite.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,13 @@ static CRSQL_EXT_DIR: Lazy<TempDir> = Lazy::new(|| {
183183

184184
pub fn rusqlite_to_crsqlite_write(conn: rusqlite::Connection) -> rusqlite::Result<CrConn> {
185185
let conn = rusqlite_to_crsqlite(conn)?;
186-
conn.execute_batch("PRAGMA cache_size = -32000;")?;
186+
conn.execute_batch(
187+
"
188+
PRAGMA cache_size = -1048576; -- 1 GB (value in KiB, negative sign)
189+
PRAGMA temp_store = MEMORY;
190+
PRAGMA cache_spill = FALSE;
191+
",
192+
)?;
187193

188194
Ok(conn)
189195
}

0 commit comments

Comments
 (0)