- Learning Apache Cassandra(Second Edition)
- Sandeep Yarabarla
- 106字
- 2021-07-03 00:19:32
A table for status updates
In the MyStatus application, we'll begin by creating a timeline of status updates for each user. Users can view their friends' status updates by accessing the timeline of the friend in question.
The user timeline requires a new level of organization, which we didn't see in the users table that we created in the previous chapter. Specifically, we have two requirements:
- Rows (inpidual status updates) should be logically grouped by a certain property (the user who created the update)
- Rows should be accessible in a sorted order (in this case, by creation date)
Fortunately, compound primary keys provide exactly these qualities.
推薦閱讀
- 樂高機(jī)器人:WeDo編程與搭建指南
- Splunk 7 Essentials(Third Edition)
- JavaScript實(shí)例自學(xué)手冊(cè)
- 自動(dòng)檢測(cè)與傳感技術(shù)
- 21天學(xué)通Visual Basic
- Kubernetes for Developers
- LAMP網(wǎng)站開發(fā)黃金組合Linux+Apache+MySQL+PHP
- Applied Data Visualization with R and ggplot2
- 一步步寫嵌入式操作系統(tǒng)
- 筆記本電腦電路分析與故障診斷
- Photoshop CS4數(shù)碼攝影處理50例
- 基于Proteus的單片機(jī)應(yīng)用技術(shù)
- 數(shù)字多媒體技術(shù)基礎(chǔ)
- Hands-On Business Intelligence with Qlik Sense
- 菜鳥起飛電腦組裝·維護(hù)與故障排查