Use SQLITE write-ahead logging
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							parent
							
								
									89d7b01a76
								
							
						
					
					
						commit
						0e45ab5aa9
					
				
							
								
								
									
										11
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -1,4 +1,11 @@ | ||||
| # Cargo/Rust | ||||
| /target | ||||
| /.vscode | ||||
| /*.db | ||||
| Cargo.lock | ||||
| 
 | ||||
| # Visual studio code | ||||
| .vscode | ||||
| 
 | ||||
| # Sqlite databases | ||||
| /*.db | ||||
| *.db-shm | ||||
| *.db-wal | ||||
| @ -17,6 +17,9 @@ pub fn setup_db() -> Result<DbConn> { | ||||
|     // let conn = DbConn::open_in_memory()?;
 | ||||
|     let mut conn = DbConn::open("test.db")?; | ||||
| 
 | ||||
|     // Go ahead and use write ahead log for better perf
 | ||||
|     conn.execute_batch("PRAGMA journal_mode=WAL;")?; | ||||
| 
 | ||||
|     let migs = create_migrations(); | ||||
|     migs.apply(&mut conn)?; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user