0

I don't wanna use any other language. Just open the MongoDB's shell and create let say 100 000 documents with _id incremented by 1.

Is that possible?

tshepang
  • 12,111
  • 21
  • 91
  • 136
acheruns
  • 681
  • 1
  • 7
  • 14

1 Answers1

1

The MongoDB shell is a javascript shell, so you can use anything you can use in javascript:

> for (var i=0; i<100000; i++) { db.my_collection.insert({i: i}); }
dcrosta
  • 26,009
  • 8
  • 71
  • 83