5a4dd6b792
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) |
||
---|---|---|
.. | ||
index.js | ||
listeners.js | ||
token.js | ||
utils.js |