mardi 29 décembre 2015

Bulk commit in ember js?

I have 7k amount of data and i am using ember data. I am using following code cleanList.forEach(function(dncInfo) { let email = dncInfo.email; if (!email) { email = dncInfo.domain; } let type = (dncInfo.email) ? 'PERSON' : 'COMPANY'; let donotcontactInfo = controller.store.createRecord('lead-generation/md-donotcontact', { "pattern": email, "type": type, "status": 'manual' }); let promise = donotcontactInfo.save(); uploadedList.push(promise); promise.then(function( /* info */ ) { // }); });

When i use these in huge amount of data like 7k i get error Error net::ERR_INSUFFICIENT_RESOURCES but if use the same request for small data it works. What is the best way to handle huge amount of data in Emberjs? Is there any Bulk commit in EmberJs ?




Aucun commentaire:

Enregistrer un commentaire