rust: más parametros de optimización de sqlite

This commit is contained in:
Cat /dev/Nulo 2023-04-23 21:40:18 -03:00
parent c4a1418cc2
commit 9f70f973ce

View file

@ -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)
}