官术网_书友最值得收藏!

Static columns act like predefined joins

Now that we've explored the behavior of static columns, it's rather striking how similar the data model in users_with_status_updates is to the data model represented by users and user_status_updates taken together. In particular, both representations do the following:

  • Associate multiple status updates with a single user
  • Associate a single e-mail address and password with a single user
  • Allow creating and accessing discrete user records, with or without associated status updates

The difference is simply the interface to the data model: are we working with one table, or two? It turns out that users_with_status_updates behaves very much like the result of an SQL LEFT JOIN of users and user_status_updates. Cassandra, of course, does not support JOIN clauses when reading data; instead, this join is baked into the schema itself through the use of static columns.

主站蜘蛛池模板: 科技| 宝应县| 嵩明县| 南召县| 陵川县| 黄山市| 贵溪市| 铁力市| 禹州市| 凯里市| 南皮县| 长泰县| 丹江口市| 洛阳市| 南阳市| 江都市| 准格尔旗| 大丰市| 闸北区| 依安县| 昌平区| 曲松县| 榆树市| 成安县| 广元市| 海宁市| 磐石市| 达日县| 黄冈市| 河曲县| 灵川县| 浑源县| 康马县| 江都市| 潼南县| 庆安县| 娄底市| 磐安县| 钦州市| 泽普县| 山东省|