0
accountInsert = @collection.insert_one({"Acctnum" =>   })

using this i am able push the record from text file to mongo one by one but it is taking huge time. Is there any way to push the complete file at a time ???

Aserre
  • 4,916
  • 5
  • 33
  • 56
vardhan
  • 9
  • 1

1 Answers1

0

Maybe you can use insert() or insertMany() function

What's the difference between insert(), insertOne() and insertMany() method?

Community
  • 1
  • 1
Hsiu Chuan Tsao
  • 1,396
  • 1
  • 12
  • 23