mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:33:27 +00:00
add sync= off and read_uncommited=true to improve perf
This commit is contained in:
parent
dc225f6aa3
commit
f2dfb718c6
1 changed files with 2 additions and 0 deletions
|
@ -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", {
|
||||
|
|
Loading…
Reference in a new issue