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 dc225f6aa3
commit f2dfb718c6

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