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 ???
Maybe you can use insert()
or insertMany()
function
What's the difference between insert(), insertOne() and insertMany() method?