|
|
@ -107,6 +107,7 @@ class Database {
|
|
|
|
R.freeze(true);
|
|
|
|
R.freeze(true);
|
|
|
|
await R.autoloadModels("./server/model");
|
|
|
|
await R.autoloadModels("./server/model");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await R.exec("PRAGMA foreign_keys = ON");
|
|
|
|
// Change to WAL
|
|
|
|
// Change to WAL
|
|
|
|
await R.exec("PRAGMA journal_mode = WAL");
|
|
|
|
await R.exec("PRAGMA journal_mode = WAL");
|
|
|
|
await R.exec("PRAGMA cache_size = -12000");
|
|
|
|
await R.exec("PRAGMA cache_size = -12000");
|
|
|
|