rust: más parametros de optimización de sqlite
This commit is contained in:
parent
c4a1418cc2
commit
9f70f973ce
1 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,8 @@ fn make_conn() -> Result<Connection, Box<dyn Error>> {
|
|||
let conn = Connection::open(db_path())?;
|
||||
conn.pragma_update(None, "journal_mode", "OFF")?;
|
||||
conn.pragma_update(None, "synchronous", 0)?;
|
||||
conn.pragma_update(None, "cache_size", 1000000)?;
|
||||
conn.pragma_update(None, "locking_mode", "EXCLUSIVE")?;
|
||||
Ok(conn)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue