mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-12 05:33:59 +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"
|
if Settings.mysql.clsi.dialect == "sqlite"
|
||||||
logger.log "running PRAGMA journal_mode=WAL;"
|
logger.log "running PRAGMA journal_mode=WAL;"
|
||||||
sequelize.query("PRAGMA journal_mode=WAL;")
|
sequelize.query("PRAGMA journal_mode=WAL;")
|
||||||
|
sequelize.query("PRAGMA synchronous=OFF;")
|
||||||
|
sequelize.query("PRAGMA read_uncommitted = true;")
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
UrlCache: sequelize.define("UrlCache", {
|
UrlCache: sequelize.define("UrlCache", {
|
||||||
|
|
Loading…
Reference in a new issue