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

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.

主站蜘蛛池模板: 丁青县| 民乐县| 乐陵市| 赤城县| 锡林郭勒盟| 寿光市| 根河市| 泊头市| 喜德县| 南阳市| 黔东| 荃湾区| 广元市| 万安县| 彭水| 庆元县| 平泉县| 鄢陵县| 临漳县| 霍山县| 达孜县| 武义县| 双柏县| 东宁县| 什邡市| 旬邑县| 庆安县| 大方县| 宁夏| 黔江区| 偃师市| 化州市| 佛山市| 理塘县| 新邵县| 安仁县| 临夏县| 聂拉木县| 正镶白旗| 潞城市| 鄂伦春自治旗|