mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
stop using memory for sqlite temp store
On large collections this can end up consuming hundreds of megabytes of RAM on operations like a vacuum.
This commit is contained in:
parent
70cc1699a6
commit
5ec7251f6e
1 changed files with 0 additions and 1 deletions
|
@ -44,7 +44,6 @@ fn open_or_create_collection_db(path: &Path) -> Result<Connection> {
|
|||
db.pragma_update(None, "cache_size", &(-40 * 1024))?;
|
||||
db.pragma_update(None, "legacy_file_format", &false)?;
|
||||
db.pragma_update(None, "journal_mode", &"wal")?;
|
||||
db.pragma_update(None, "temp_store", &"memory")?;
|
||||
|
||||
db.set_prepared_statement_cache_capacity(50);
|
||||
|
||||
|
|
Loading…
Reference in a new issue