Hello everyone,
In my application I have this weird problem where when I do an update on my collection the app crashes because of this error : > FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Here’s my method :
'anecdoteobjets.delete'(id) {
AnecdoteObjets.remove({ _id: id }, function(error, result){
if(result){
return Objets.update({},{ $pull: { AnecdoteObjets: { AnecdoteObjetsId: id} } },{ multi: true});
}
});
}
I have looked around for a solution but I can’t seem to find anything. If I run the query from the mongo shell the operation takes half a second. The problem only occurs in Meteor, the first operation “remove” works but it then takes a few second and the app restarts with the exception stated below after the second query is ran.
Thanks in advance.