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

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.

主站蜘蛛池模板: 铜梁县| 衡阳县| 高州市| 九江县| 嘉祥县| 剑阁县| 岳普湖县| 轮台县| 兴山县| 台山市| 慈溪市| 乐亭县| 辉南县| 广饶县| 黄骅市| 封丘县| 年辖:市辖区| 米脂县| 呼和浩特市| 丹凤县| 侯马市| 桃园市| 襄汾县| 万山特区| 建水县| 东港市| 长白| 和田县| 邹城市| 乌拉特中旗| 井陉县| 平乐县| 泾川县| 厦门市| 开鲁县| 五大连池市| 康保县| 宜君县| 莎车县| 宜都市| 平塘县|