I have a mongodb database server.I want to get it fill up with large number of entries in a particular collection let say a collection named "user". I want to know if there would be a script for saving large no of randomly created entries in my mongodb database from linux terminal or a Java code for the same. I have a script that creates 10,000 entries in "user" collection:
> for(i=0;i<10000;i++){db.user.insert({username:'ashok'+i,password:'123'});}
This query creates the user names as ashok1 , ashok2 ,.... I want a script that could create random user names. It could be better if I could get this done in grails.