0
Fork 0
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:
Daniel Lockyer 2023-06-07 13:44:21 +02:00
parent 9372124d61
commit d127b975af
No known key found for this signature in database

View file

@ -69,6 +69,7 @@ class FixtureManager {
*/
async addAllFixtures(options) {
const localOptions = _.merge({
autoRefresh: false,
context: {internal: true},
migrating: true
}, options);