mean-expert-official / loopback-import-mixin

A mixin to provide bulk import functionallity for Loopback Models
MIT License
16 stars 11 forks source link

Some reference ids get missed when Import large data set #4

Open technova opened 8 years ago

technova commented 8 years ago

This is around where you mentioned a patch. var autoId = Model.definition.settings.relations[existingRelation].model; autoId = autoId.charAt(0).toLowerCase() + autoId.slice(1) + 'Id';

We tried to import 300 records with "where" mapping and 4-5 records were missed referenceID. Did you find better solution for this? because this patch is not working at all in our case.

jonathan-casarrubias commented 8 years ago

Hi @technova, thanks for reporting..

So, I haven't tried but I see it is in the belongsTo relationship, now I have a couple of ideas of how to get the id without assuming it will be the form modelnameId.

I'll try to verify and send a fix for this asap.

cheers jon