Bash code execute

Hi guys,

I have a file upload of a CSV, what im doing today is processing each row to check if does not exist on CSVMongo Collection.

With 1000 rows works perfect…but after 1000 it start getting “slow” like a 10, 12 second freeze sometimes.

Is there a way to execute MongoImport command from mongo ? or a good way to process the rows ?

Im using dsyko:meteor-node-csv