- 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.
推薦閱讀
- Hands-On Intelligent Agents with OpenAI Gym
- AutoCAD快速入門與工程制圖
- 3D Printing with RepRap Cookbook
- Hadoop 2.x Administration Cookbook
- 數據中心建設與管理指南
- AI 3.0
- Apache Superset Quick Start Guide
- Blender 3D Printing by Example
- 零起點學西門子S7-200 PLC
- Salesforce Advanced Administrator Certification Guide
- HBase Essentials
- Web編程基礎
- Hands-On Business Intelligence with Qlik Sense
- 單片機C51應用技術
- 巧學活用Linux