Skip to content
Snippets Groups Projects
Commit ea7baf00 authored by eta's avatar eta
Browse files

hack in some sqlite memory limits to see if that helps

parent 3d8cb7b2
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,8 @@ impl SqliteStore {
OpenFlags::SQLITE_OPEN_READ_WRITE | OpenFlags::SQLITE_OPEN_CREATE
};
let conn = rusqlite::Connection::open_with_flags(&sqlpath, flags)?;
conn.execute_batch("PRAGMA mmap_size=268435456;")?;
conn.execute_batch("PRAGMA hard_heap_limit=5000000;")?; // 5 MB
let mut store = SqliteStore::from_conn(conn, blob_dir)?;
store.sql_path = Some(sqlpath);
store.lockfile = Some(lockfile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment