Projapati
не прочитано,5 июн. 2011 г., 03:08:5905.06.2011Отправить сообщение автору
Чтобы ответить автору, войдите в систему
Чтобы переслать сообщение, войдите в систему
У вас нет разрешения на удаление сообщений в этой группе.
Показать исходное сообщение
Возможно, адреса электронной почты являются анонимными для этой группы или вам требуется разрешение на просмотр адресов электронной почты ее участников, чтобы увидеть исходное сообщение.
– 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.