Hi!
I have a collection with ~3000 items.
And I have this method:
'client.remove.all': function (structureId) {
console.log("client.remove.all [start]")
Clients.remove({structureId});
console.log("client.remove.all [end]")
},
In that moment, the user has a subscription to this “clients” collection.
When I execute it:
- it removes the items in the collection (ok)
- But the collection count in the browser stops in a random number, arround the middle of the con (i.e.: the collection has 3000 items, it stucks in ~1400 - ~1600 items.
- The CPU goes to 100%
- Meteor takes too long to new subscriptors.
- Never prints the “client.remove.all [end]” (ok, never in 20 minutes running)
This doesn’t happen if I remove the collection in mongodb (I did it with robomongo and the shell).
Someone knows where can be de problem?
Thanks!!!
Someone know