Tune SQLite caches and maintain planner statistics
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import Database from 'better-sqlite3';
|
||||
import { workerData } from 'node:worker_threads';
|
||||
import { tuneConnection } from '../db/connection.js';
|
||||
|
||||
const handle = new Database(workerData.dbPath, { readonly: true, fileMustExist: true });
|
||||
tuneConnection(handle, true);
|
||||
export function db() { return handle; }
|
||||
|
||||
Reference in New Issue
Block a user