Mongodb Classroom image

Anil  Bist / Professional / DataBase

 
To post your Question Join Classroom
 
Lesson Topics's No:-  ||
Lessons:-mongoimport with JSON

mongoimport with JSON

Sample zipcode dataset in zipcodes.json stored in c:\Users\yc03ak1\Desktop\zips.json

 

to import this data-set to the database named "test" and collection named "zips"

 

  • --db : name of the database where data is to be imported to
  • --collection: name of the collection in the database where data is to be improted
  • --drop : drops the collection first before importing
  • --type : document type which needs to be imported. default JSON
  • --host : mongodb host and port on which data is to be imported.
  • --file : path where the json file is

 

output :

2016-08-10T20:10:50. 159-0700   connected  to:  localhost: 47019 
2016-08-10T20:10:50.163-0700   dropping: test.zips
2016-08-10T20:10:53.155-0700   [################........]  test.zips        2.1 MB/3.0 MB (68.5%)
2016-08-10T20:10:56.150-0700   [########################]  test.zips   3.0 MB/3.0 MB (100.0%)
2016-08-10T20:10:57.819-0700   [########################]  test.zips   3.0 MB/3.0 MB (100.0%)
2016-08-10T20:10:57.821-0700   imported  29353  documents

 

 

 
 
 
image
Anil  Bist

Skills    Mongodb

Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,
Location :-Dehradun,Dehradun,Uttarakhand,India
Description:-

in 2006, i Join a web development company in Bangalore and start work on "Ruby on Rail" this is my first web development framework and we worked in this framework and develop four to five project after some time , I moved to JEE/Sturst frame work,

After some time i decided that now times come and I have to go on in my own way and I started a company name is "Soarlogic&q
Explore

 

  Students (0)