We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3da1b23 commit a64cde8Copy full SHA for a64cde8
crates/corro-types/src/sqlite.rs
@@ -183,7 +183,13 @@ static CRSQL_EXT_DIR: Lazy<TempDir> = Lazy::new(|| {
183
184
pub fn rusqlite_to_crsqlite_write(conn: rusqlite::Connection) -> rusqlite::Result<CrConn> {
185
let conn = rusqlite_to_crsqlite(conn)?;
186
- conn.execute_batch("PRAGMA cache_size = -32000;")?;
+ 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
+ )?;
193
194
Ok(conn)
195
}
0 commit comments