Ghost/core/server/models/base
kirrg001 5a4dd6b792 Increased speed of importer
no issue

- change behaviour from updating user references after the actual import to update the user reference before the actual import
  - updating user references after the import is way less case intense
  - that was the initial decision for updating the references afterwards
  - but that does not play well with adding nested relations by identifier
- the refactoring is required for multiple authors
  - if we e.g. store invalid author id's, we won't be able to add a belongs-to-many relation for multiple authors
  - bookshelf-relations is generic and always tries to find a matching target before attching a model
  - invalid user references won't work anymore
- this change has a very good side affect
  - 17mb takes on master ~1,5seconds
    - on this branch it takes ~45seconds
  - also the memory usage is way lower and stabler
  - 40mb takes 1,6s (times out on master)
2018-02-20 09:56:45 +01:00
..
index.js Increased speed of importer 2018-02-20 09:56:45 +01:00
listeners.js Avoid knex warning when destroying a user 2018-01-27 12:31:51 +01:00
token.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
utils.js Import lib/common only 2017-12-12 10:28:13 +01:00