make_users.js for (var i = 1; i<= 10000 ; i++) { var user = { id : i, name : "nanashi_" + i , created_on : new Date() }; db.collection.save(user); } å®è¡ãã¾ãã $ bin/mongo --quiet localhost/testdb make_users.js ï¼ä¸ä»¶ã§ãï¼ç§æªæºã§çµããã¾ããéãï¼ Mongoã·ã§ã«ã«å ¥ã£ã¦çµæã確èªãã¾ãã $ bin/mongo localhost/testdb MongoDB shell version: 2.0.4 connecting to: localhost/testdb > db.collection.count(); 10000 ãã¼ãã¡ããã¨ï¼ä¸ä»¶ã¨åºã¾ããã ä¸èº«ã¯ã©ããªã£ã¦ãã§ããã
{{#tags}}- {{label}}
{{/tags}}