官术网_书友最值得收藏!

Refining our mental model

In the previous chapter, we began to develop a mental model of a Cassandra table that looked like a key-value store where each value is a collection of columns with values. Now that we have seen compound primary keys, we can refine that mental model to take into account the more complex structures we now know how to build, as follows:

We can envision the user_status_updates table as a more robust key-value structure. Our keys are still usernames, but the values are now ordered collections of rows, both identified and ordered by the id clustering column. As with our earlier model, each partition key's data stands alone; to get data from multiple partitions, we have to go looking in multiple places.

主站蜘蛛池模板: 白朗县| 碌曲县| 汶上县| 邢台县| 县级市| 祁连县| 什邡市| 赞皇县| 农安县| 章丘市| 花垣县| 香河县| 屯留县| 成安县| 壶关县| 珲春市| 崇文区| 通州区| 江津市| 安仁县| 萨嘎县| 淮阳县| 仪征市| 咸阳市| 嵊州市| 托里县| 沭阳县| 简阳市| 龙胜| 宁远县| 泽库县| 龙海市| 隆德县| 五大连池市| 辽宁省| 乐东| 奈曼旗| 高州市| 池州市| 钟祥市| 玉林市|