Groups
Groups
Sign in
Groups
Groups
mongodb-user
Conversations
About
Send feedback
Help
can i write script file to create index of collection in mongodb in unix.
699 views
Skip to first unread message
rjgcx terry
unread,
Oct 13, 2011, 2:49:29 AM
10/13/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
I know how to create index in mongodb client.
But I don not know how to perform a shell script .
who can help me ?
Thank you very much!
Karl Seguin
unread,
Oct 13, 2011, 2:52:39 AM
10/13/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongod...@googlegroups.com
You can run a .js file pretty easily in the shell:
cat blah.js
db.coll.createIndex({abc:1})
mongo blah.js
Karl
Reply all
Reply to author
Forward
0 new messages