我正在使用内部用户 Cassandra 的 Apigee Usergrid。在存储数据时,我遇到了以下困境。
我是否像这样存储数据:
[{
"portlet": "personal_information",
"fields": [{
"id": "first_name",
"text": {
"en_us": "First Name",
"de_de": "First Name"
}
}, {
"id": "salutation",
"text": {
"en_us": "Salutation",
"de_de": "Salutation"
}
}, {
"id": "marital_status",
"text": {
"en_us": "Marital Status",
"de_de": "Marital Status"
}
}, {
"id": "native_preferred_lang",
"text": {
"en_us": "Preferred Lang",
"de_de": "Preferred Lang"
}
}]
}]
或这个
[{
"id": "first_name",
"portlet": "personal_information",
"text": {
"en_us": "First Name",
"de_de": "First Name"
}
}, {
"id": "salutation",
"portlet": "personal_information",
"text": {
"en_us": "Salutation",
"de_de": "Salutation"
}
}, {
"id": "marital_status",
"portlet": "personal_information",
"text": {
"en_us": "Marital Status",
"de_de": "Marital Status"
}
}, {
"id": "native_preferred_lang",
"portlet": "personal_information",
"text": {
"en_us": "Preferred Lang",
"de_de": "Preferred Lang"
}
}]
这可能与所有 no-sql 数据库有关。什么数据格式更有效?