- Learning Apache Cassandra(Second Edition)
- Sandeep Yarabarla
- 141字
- 2021-07-03 00:19:37
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.
推薦閱讀
- 手把手教你學AutoCAD 2010
- WOW!Illustrator CS6完全自學寶典
- Spark大數據技術與應用
- ESP8266 Home Automation Projects
- MATLAB/Simulink權威指南:開發環境、程序設計、系統仿真與案例實戰
- Mastering Game Development with Unreal Engine 4(Second Edition)
- 軟件構件技術
- 液壓機智能故障診斷方法集成技術
- 精通LabVIEW程序設計
- Mastering Text Mining with R
- Learning Apache Apex
- 貫通Hibernate開發
- 基于Proteus的PIC單片機C語言程序設計與仿真
- 手把手教你學Photoshop CS3
- Linux常用命令簡明手冊