Hi guys.
I really tried, tried so hard but i cant understand couchdb :( I must record the contact of several people, should i put every contact in a single document ?
"1th documet"
{
"names" : [
Jake", "Lock"
]
"numbers" : [
"Jake's number", "Lock's number"
]
}
Future records:
"1th documet"
{
"names" : [
Jake", "Lock", "Kate", "Jin", ...
]
"numbers" : [
"Jake's number", "Lock's number", "Kate's number", "Jin's number", ...
]
}
Or in different documents ?
"1th document"
{
"name" : "Jake"
"number" : "Jake's number"
}
"2th document"
{
"name" : "Lock"
"number" : "Lock's number"
}
Future records:
"1th document"
{
"name" : "Jake"
"number" : "Jake's number"
}
"2th document"
{
"name" : "Lock"
"number" : "Lock's number"
}
"3th document"
{
"name" : "Kate"
"number" : "Kate's number"
}
"4th document"
{
"name" : "Jin"
"number" : "Jin's number"
}
...
I confused, can somebody help me ?
Thanks.