add sync= off and read_uncommited=true to improve perf

This commit is contained in:
Henry Oswald
2018-07-30 15:16:06 +01:00
parent c490479a1a
commit 94a52333f7

View File

@@ -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", {