mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -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',
|
client: 'sqlite3',
|
||||||
connection: {
|
connection: {
|
||||||
filename: path.join(__dirname, '/content/data/ghost-test.db')
|
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: {
|
server: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue