Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/wasm/src/database/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ impl DatabaseState {

// The WORK_DB_PATH is the "master" SQLite path. We have logic copying over bundled navigation data if needed in the DatabaseState::new function.
let conn = Connection::open_with_flags(WORK_DB_PATH, flags)?;

// Use memory for temp storage (avoids directory issues with the work folder, with the tradeoff of higher memory usage for queries)
conn.execute_batch("PRAGMA temp_store = MEMORY")?;

self.database = Some(conn);

Ok(())
Expand Down