- 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.
推薦閱讀
- 課課通計算機原理
- Circos Data Visualization How-to
- 21天學通PHP
- 3D Printing with RepRap Cookbook
- Ansible Quick Start Guide
- 計算機控制技術
- Dreamweaver CS3網頁設計與網站建設詳解
- 工業機器人維護與保養
- RedHat Linux用戶基礎
- Salesforce for Beginners
- DevOps Bootcamp
- 在實戰中成長:Windows Forms開發之路
- Introduction to R for Business Intelligence
- Dreamweaver+Photoshop+Flash+Fireworks網站建設與網頁設計完全實用
- 30天學通Java Web項目案例開發