File Reading & Insert

Hi guys,

Im using CFS to upload a file, and meteor-node-csv to read that file (.csv) and for each row i make a .FindOne() if that row already exist i continue reading if not i make an .Insert() (all this ocurs on server side)

I also subscribe the same upload page to the “file upload template”… so when i process the file i get the new rows “instantly”.

If i upload a max 500 rows .csv file it works perfect, if i upload a file with more than 500 rows… the complete site freeze for 2 minutes or so… NO ERROR on console.

Thanks.