0
Fork 0
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:
Hannah Wolfe 2016-01-19 16:38:57 +00:00
commit 8743c12379

View file

@ -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: {