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

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.

主站蜘蛛池模板: 泽州县| 方城县| 江华| 余庆县| 泾阳县| 伊春市| 洪湖市| 长顺县| 维西| 彰化市| 南乐县| 惠州市| 朝阳市| 双城市| 左云县| 台南县| 灵宝市| 彭水| 株洲县| 玉树县| 兴化市| 汾阳市| 德保县| 饶阳县| 柘荣县| 祁阳县| 维西| 漾濞| 墨江| 景德镇市| 当阳市| 石首市| 株洲市| 南靖县| 通渭县| 禹州市| 平舆县| 馆陶县| 德钦县| 安陆市| 航空|