Import CSV to Mongo with .Net Mongo-driver using mongoimport

Thanks Adrienne.

  1. It’s not a one-time insert, we need do it few times a month.
  2. Sure, we did it in NetCore, we read a file, line by line create an object and add it to a list, after that, we send the list to another method to do a bulkinsert using a batchSize.
    (our code is in spanish)

  1. We will try to read/insert about 2 or 3 millions of records by file. We are building an app, here the end-user upload a .csv file and we read the file and create a collection and insert the records.

Again, thanks for your help.