From f2dfb718c6bd7a91aecd4cc2c395d7f41d2de2a0 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Mon, 30 Jul 2018 15:16:06 +0100 Subject: [PATCH] add sync= off and read_uncommited=true to improve perf --- services/clsi/app/coffee/db.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/clsi/app/coffee/db.coffee b/services/clsi/app/coffee/db.coffee index a24377e72c..764edebe8e 100644 --- a/services/clsi/app/coffee/db.coffee +++ b/services/clsi/app/coffee/db.coffee @@ -17,6 +17,8 @@ sequelize = new Sequelize( if Settings.mysql.clsi.dialect == "sqlite" logger.log "running PRAGMA journal_mode=WAL;" sequelize.query("PRAGMA journal_mode=WAL;") + sequelize.query("PRAGMA synchronous=OFF;") + sequelize.query("PRAGMA read_uncommitted = true;") module.exports = UrlCache: sequelize.define("UrlCache", {