mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Merge pull request #6354 from jtwebman/fix_sqlite_test_performance
Fix slow running tests when using Sqlite3.
This commit is contained in:
commit
8743c12379
1 changed files with 8 additions and 0 deletions
|
@ -83,6 +83,14 @@ config = {
|
|||
client: 'sqlite3',
|
||||
connection: {
|
||||
filename: path.join(__dirname, '/content/data/ghost-test.db')
|
||||
},
|
||||
pool: {
|
||||
afterCreate: function (conn, done) {
|
||||
conn.run('PRAGMA synchronous=OFF;' +
|
||||
'PRAGMA journal_mode=MEMORY;' +
|
||||
'PRAGMA locking_mode=EXCLUSIVE;' +
|
||||
'BEGIN EXCLUSIVE; COMMIT;', done);
|
||||
}
|
||||
}
|
||||
},
|
||||
server: {
|
||||
|
|
Loading…
Reference in a new issue