- Learning Apache Cassandra(Second Edition)
- Sandeep Yarabarla
- 197字
- 2021-07-03 00:19:37
Summary
In this chapter, we were introduced to the concept of compound primary keys and learned that a primary key consists of one or more partition keys and, optionally, one or more clustering columns. We saw how partition keys—the only type of key we had previously encountered—can group related rows together and how clustering columns provide an order for these rows within each partition.
Compound primary keys allow us to build a table containing users' status updates because they expose two important structures: grouping of related rows and ordering of rows. In the user_status_updates table, we encoded the relationship between users and their status updates implicitly in the structure of the primary key; the partition key refers to the parent row in the users table. We also explored the use of static columns to make this relationship explicit, storing all the information about users and their status updates in a single table.
In Chapter 4, Beyond Key-Value Lookup, we will pe into new ways of interacting with data that is organized using compound primary keys, allowing us to build functionality in our application for viewing users' timelines in a variety of interesting ways.
- Clojure Data Analysis Cookbook
- Splunk 7 Essentials(Third Edition)
- 中文版Photoshop CS5數(shù)碼照片處理完全自學(xué)一本通
- Spark編程基礎(chǔ)(Scala版)
- Hadoop 2.x Administration Cookbook
- Dreamweaver CS3網(wǎng)頁設(shè)計(jì)50例
- 影視后期制作(Avid Media Composer 5.0)
- 空間站多臂機(jī)器人運(yùn)動(dòng)控制研究
- Salesforce for Beginners
- 網(wǎng)絡(luò)服務(wù)器搭建與管理
- WPF專業(yè)編程指南
- 歐姆龍PLC應(yīng)用系統(tǒng)設(shè)計(jì)實(shí)例精解
- 工程地質(zhì)地學(xué)信息遙感自動(dòng)提取技術(shù)
- Spark Streaming實(shí)時(shí)流式大數(shù)據(jù)處理實(shí)戰(zhàn)
- Learn T-SQL Querying