Monday, 8 May 2017

storing bulk data in mongodb

I have an array of data something like.

[ { datas1 }, {data2 }, {data3 }] //data is something like

[{"start_time":"30 Mar 2017 09:05 PM","vehicle_number":"KA25fg1472","rate":"0","booking_id":"2288","status":"CheckedIn","vehicle_type":"fw"}] 

I need to store these data , I can loop through these data store them in format and save them but is there any optimal way of doing this other than looping.



via sac Dahal

No comments:

Post a Comment