- 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.
- 輕輕松松自動化測試
- 腦動力:Linux指令速查效率手冊
- Splunk 7 Essentials(Third Edition)
- 自動控制工程設計入門
- 智能傳感器技術與應用
- Spark編程基礎(Scala版)
- 工業機器人工程應用虛擬仿真教程:MotoSim EG-VRC
- Data Wrangling with Python
- HTML5 Canvas Cookbook
- Visual Studio 2010 (C#) Windows數據庫項目開發
- SQL Server數據庫應用基礎(第2版)
- Mastering Predictive Analytics with scikit:learn and TensorFlow
- Unreal Development Kit Game Design Cookbook
- 工業機器人操作
- Access 2007數據庫入門與實例應用金典