2
正如標題所說,我對NoSQL DBS(如Cassandra)非常瞭解(全部閱讀)。和其他人一樣,我以前學過RMDBS。所以我在'WTF是一個超級專欄'和其他明顯的谷歌點擊做了一些閱讀,但我仍然不知道如何建模這個:Cassandra/NoSQL新手:正確的建模方式?
說我想保存用戶,如在用戶名/密碼/名稱/等等......如果那個用戶有,手機和座機電話怎麼辦?這是「正確」的方式嗎? (使用相同的縮寫JSON風格在其他網站上可以看到)
Users: { // <-- this is the Users SuperColumnFamily, keyed by username
myuser: { // <-- this is a User SuperColumn
username = "myuser", // <-- this is the username Column
email = "[email protected]",
...
},
...
}
Phone: { // <-- this is where the users phone numbers are stored
myuser: {
mobile = "0129386835235",
landline = "123876912384",
},
...
}
的意見/更正請先
謝謝你更多的信息,我想太多關係 – 2012-04-13 06:17:28