mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Disabled autoRefresh
when inserting fixtures
refs https://github.com/TryGhost/Toolbox/issues/592 - we don't need to receive the refreshed model back afterwards so we can save an SQL select per insert by disabling auto-refresh - this saves about 18000 DB queries for the MySQL tests, which should help reduce test time due to the overhead
This commit is contained in:
parent
9372124d61
commit
d127b975af
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ class FixtureManager {
|
|||
*/
|
||||
async addAllFixtures(options) {
|
||||
const localOptions = _.merge({
|
||||
autoRefresh: false,
|
||||
context: {internal: true},
|
||||
migrating: true
|
||||
}, options);
|
||||
|
|
Loading…
Add table
Reference in a new issue