Projapati
unread,Jun 5, 2011, 3:08:59 AM6/5/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
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 have 2 collections shown below:
groups:
{
{ _id: ObjectId(".."), <-- using object ids
name: "Group 1",
owner:"bob"
members:[1,2,3,4,5,6]
}
}
members:
{
{
id:1, <-- need auto increment id
name: "Tom",
email:"tom@..",
phone:
},
{
id:2,
name: "Tim",
email:"tim@..",
phone:"234234234"
}
}
}
I don't need to know the date when a group or member was created.
The contacts are shown in a grid & all contacts of a user read at
once.
I am planning to use auto-increment ids for contacts (by sequence
coll)
Shorter names for contact ids will reduce data goes over the wire and
storage I need for groups collection.
Will this prevent sharding when contacts collection has large entries?
Or there is a workaround for sharding with auto-inc ids?
By work around I meant to have synchronized sequencer or something.