0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Removed more unnecessary DB queries during init

refs d4b10323b7

- as mentioned in the referenced commit, there was another optimization
  regarding batching the inserts
- this seems good to me in the end, so I've updated knex-migrator to do this
- this commit bumps knex-migrator to the updated version
- after this change, a `knex-migrator init` goes from 5.5s to 5s locally
  and we've removed ~470 DB queries
This commit is contained in:
Daniel Lockyer 2021-11-18 18:28:40 +01:00
parent d4b10323b7
commit f37a5d3eff
No known key found for this signature in database
GPG key ID: D21186F0B47295AD
2 changed files with 5 additions and 5 deletions

View file

@ -140,7 +140,7 @@
"juice": "8.0.0",
"keypair": "1.0.4",
"knex": "0.21.21",
"knex-migrator": "4.1.2",
"knex-migrator": "4.1.3",
"lodash": "4.17.21",
"luxon": "2.1.1",
"mailgun-js": "0.22.0",

View file

@ -7199,10 +7199,10 @@ kind-of@^6.0.0, kind-of@^6.0.2:
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd"
integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==
knex-migrator@4.1.2:
version "4.1.2"
resolved "https://registry.yarnpkg.com/knex-migrator/-/knex-migrator-4.1.2.tgz#acb4d6a63f9120dc6b883bf516521ab95bd4b798"
integrity sha512-XWwuDzOlLj3BAPkFhBItg38FsFxV01J7g7rKlk3foFf5+T1QqtRa8FYV4hoAG4dJiKuQ5IK++nSbb2xvWrnGeQ==
knex-migrator@4.1.3:
version "4.1.3"
resolved "https://registry.yarnpkg.com/knex-migrator/-/knex-migrator-4.1.3.tgz#9c12e124d28f5ca25464331098ba137a7705ccd5"
integrity sha512-vBt6gmkrtvrun1dD6BegffWmnbvUylAv+ibaW4Z736uN6ZqjHiOTuxXLpU+DklMhjajlLfxKmIKRiFEhjaqG5g==
dependencies:
bluebird "3.7.2"
commander "5.1.0"