-- -- Change some SQLite defaults for better performance. -- -- Use the Write-Ahead Log; allows concurrent reads and writes. PRAGMA journal_mode = wal; -- Set synchronising to NORMAL alonside use of WAL. PRAGMA synchronous = normal; -- Set a longer busy timeout (in ms). PRAGMA busy_timeout = 3000; -- Enforce foreign keys. PRAGMA foreign_keys = true; -- Set memory cache size. PRAGMA cache_size = -20000; -- Store temporary tables/data in-memory. PRAGMA temp_store = memory;