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

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
Is there a belongsTo mixed syntax for GORM many-to-many and back-reference
Why do these Gradle tests throw exceptions?
In grails 2 when using multiple datasources, can I specify which datasource a criteria should use?
GORM methods are not accessible in Domain and Service classes
How to initialize the domain class properties with the values of another Domain class properties in grails

Categories

HOME
deployment
azure-data-factory
reserved
comparison
kalman-filter
at-command
malloc
graphql
binary-tree
icloud
opengl-es-2.0
bs4
node-notifier
virtualization
applepay
dacpac
windows-10-universal
resize
commonmark
netflix
samoa
predix
php-openssl
emgucv
virtualdub
minitab
publish
skia
react-chartjs
directx-10
junit5
key-value-observing
noraui
protovis
geopositioning
ghost4j
rotational-matrices
wallpaper
bytecode-manipulation
main
webix-treetable
temporary-files
mapzen
ncalc
grid.mvc
reportingservices-2005
botbuilder
firebase-admin
spring-security-kerberos
node-sass
auto-update
parentheses
komodoedit
pubmed
promela
mu
svmlight
knockout-components
magma
feeds
quartz-composer
nxt
url-masking
qpid
oauth2client
revolution-r
freelancer.com-api
retina
pundit
interrupted-exception
census
e10s
python-green
network-interface
socketexception
client-side-templating
preferences
internet-connection
funcunit
typo3-neos
ms-project-server-2010
gridfs
ocunit
dmoz
quickdialog
frameset
cascalog
getmessage
ohm
asyncfileupload
nsdatecomponents
xmlspy
django-tagging
sql-server-profiler
cxxtest
sudzc
digest-authentication
infrastructure
gamma
thunderbird-lightning
zend-tool
memory-size
temporal-database
defensive-programming

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App