--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
You will need to set a unique index on those field, for example with:
db.yourcollection.ensureIndex( { fieldname1: 1, fieldname2: 1 }, { unique: true } );
you can find some more information at
http://www.mongodb.org/display/DOCS/Indexes#Indexes-unique%3Atrue
cheers,
Derick
--
http://mongodb.org | http://derickrethans.nl
twitter: @derickr and @mongodb