Disable memory based temp indices since they can cause stability issues.

main
Zed A. Shaw 10 months ago
parent c657bf2af7
commit 346b5b9af3
  1. 2
      lib/ormish.js

@ -37,7 +37,7 @@ if(config.development.client === "sqlite3") {
const PERF_TRICKS = [
"pragma journal_mode = WAL", // use a WAL journal to not block writers/readers
"pragma synchronous = normal", // set concurrency to normal now that we have WAL
"pragma temp_store = memory", // use RAM to make the temporary indices
// "pragma temp_store = memory", // use RAM to make the temporary indices
// "pragma mmap_size = 30000000000", // use 30GB of mmap to store DB, not useful in multi-process settings
// "pragma page_size = 32768", // improve performance only if you store large stuff
"pragma vacuum", // give it a vacuum, this could impact startup time significantly

Loading…
Cancel
Save