0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server/data
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
..
db Backup endpoint improvements (#9365) 2018-01-11 16:03:21 +01:00
export Backup endpoint improvements (#9365) 2018-01-11 16:03:21 +01:00
importer Increased speed of importer 2018-02-20 09:56:45 +01:00
meta Moved social utility to lib/social 2017-12-14 22:34:05 +01:00
migrations Contributor Role (#9315) 2018-02-07 10:46:22 +01:00
schema 🐛 Fixed migrating from < 1.13 to 1.21 2018-02-07 12:31:21 +01:00
validation Improved validation layer (#9427) 2018-02-16 00:49:15 +01:00
xml/sitemap Import lib/common only 2017-12-12 10:28:13 +01:00
timezones.json Adds UTC as select option to timezones select list 2016-06-10 15:19:16 +02:00