mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-26 19:46:19 +00:00
acelerar sqlite
This commit is contained in:
parent
7c1d6e190a
commit
f0eeb01b66
1 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,12 @@ import { join } from "path";
|
||||||
const sqlite = new Database("sqlite.db");
|
const sqlite = new Database("sqlite.db");
|
||||||
const db = drizzle(sqlite);
|
const db = drizzle(sqlite);
|
||||||
|
|
||||||
|
sqlite.run(`
|
||||||
|
pragma journal_mode = WAL;
|
||||||
|
pragma synchronous = normal;
|
||||||
|
pragma temp_store = memory;
|
||||||
|
pragma mmap_size = 30000000000;
|
||||||
|
`);
|
||||||
sqlite.run(`
|
sqlite.run(`
|
||||||
create table precios(
|
create table precios(
|
||||||
id integer primary key autoincrement,
|
id integer primary key autoincrement,
|
||||||
|
|
Loading…
Reference in a new issue