mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-06-24 05:36:39 -05:00
11 lines
289 B
TypeScript
11 lines
289 B
TypeScript
import { CompiledQuery } from "kysely";
|
|
import { db } from "../db/sql";
|
|
import { Routine } from "./routine.server";
|
|
|
|
export const OptimizeDatabaseRoutine = new Routine({
|
|
name: "OptimizeDatabase",
|
|
func: async () => {
|
|
await db.executeQuery(CompiledQuery.raw("PRAGMA optimize"));
|
|
},
|
|
});
|