File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub const DEFAULT_MAX_SYNC_BACKOFF: u32 = 2;
1515pub const DEFAULT_MAX_SYNC_BACKOFF : u32 = 15 ;
1616
1717const fn default_apply_queue ( ) -> usize {
18- 100
18+ 500
1919}
2020
2121const fn default_reaper_interval ( ) -> usize {
Original file line number Diff line number Diff line change @@ -183,7 +183,12 @@ static CRSQL_EXT_DIR: Lazy<TempDir> = Lazy::new(|| {
183183
184184pub 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+ PRAGMA cache_size = -1048576; -- 1 GB (value in KiB, negative sign)
188+ PRAGMA temp_store = MEMORY;
189+ PRAGMA cache_spill = FALSE;
190+ "
191+ ) ?;
187192
188193 Ok ( conn)
189194}
You can’t perform that action at this time.
0 commit comments