gorm


Script for saving large no of entries in mongodb


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.

Related Links

Neo4j and Mongodb as datasource in Grails
GORM (varchar .save(), non DATE): ORA-01861: literal does not match format string
GORM addTo methods not found in Spock test
spring-boot property exception while externalizing datasource properties and using actuator
Mapping hasMany relation and saving the related data
Method on class [] was used outside of a Grails application. If running in the context of a test using the mocking API or bootstrap Grails Correctly
What happens when two app servers in cluster start LiquiBase update (via Grails)?
use of mappedBy in Many to Many relationship in Grails
Domain class auto validation in grails
Grails Detached Criteria Query and “group by” and “having” clause
Script for saving large no of entries in mongodb
Does the multiple datasource feature of Grails 2.0 support relations?
How to avoid ImprovedNamingStrategy in joinTable in Grails
Grails 2 Show transient property that is an alias for id column
How to save GORM class with composite id made from its own field?
Grails - 2 domains and 1 form create/update/edit issues

Categories

HOME
date
amazon-ec2
fluentd
comparison
infragistics
umd
ios-charts
windows-10-universal
node-pdfkit
user-input
reveal.js
dax
alignment
aurigma
ab-testing
sms-gateway
introduction
emulator
swingx
plunker
jquery-ajaxq
tar
graphicsmagick
tapestry
core-text
cultureinfo
fopen
web-api-testing
replaceall
msys2
facebook-apps
file-rename
noraui
uiswipegesturerecognizer
force-layout
overlap
vxworks
dosbox
disassembling
temporary-files
user-controls
unoconv
android-tabhost
jvm-languages
spring-security-kerberos
vao
netcdf4
modelmapper
acoustics
qcombobox
websphere-mq-fte
flickr-api
worksheet
brightcove
drupal-6
sqlclient
font-size
android-cursor
sqldf
redundancy
synchronous
topbeat
pintos
cubes
ableton-live
passport-google-oauth
file-writing
intrusion-detection
merge-conflict-resolution
captivenetwork
oauth2client
independentsoft
two-factor-authentication
photobucket
phpcas
responsive-images
microbenchmark
winddk
nsbutton
code-access-security
castle
rtmfp
meteor-velocity
tidy
django-nonrel
eventlistener
drools-planner
specification-pattern
angularjs-controller
libstdc++
postgresql-performance
work-stealing
libc++
imac
asp.net-mvc-areas
rescale

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile