Skip to content

Commit 29157ac

Browse files
committed
Try without pragmas
1 parent 61a80e1 commit 29157ac

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

crates/corro-types/src/sqlite.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,7 @@ 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(
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-
)?;
186+
conn.execute_batch("PRAGMA cache_size = -32000;")?;
193187

194188
Ok(conn)
195189
}

0 commit comments

Comments
 (0)