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

Developing a mental model for Cassandra

Any time you learn a new tool, you will naturally begin to develop a mental model for how that tool works. So far, our model for how Cassandra tables works is fairly simple; we will expand upon it throughout the book.

For now, we can think of a Cassandra table as a collection of keys, each of which points to a row. Each row contains data in some subset of its columns.

We also know that, at least in the users table, rows are stored non-contiguously; accessing each row requires Cassandra to seek a different place in storage. So we may imagine the current state of our users table to look something like this:

Essentially, we can think of our Cassandra table as a key-value store, where each value consists of one or more predefined columns containing data of a predefined type.

主站蜘蛛池模板: 荆门市| 和平区| 礼泉县| 阜新| 烟台市| 合阳县| 泗阳县| 景德镇市| 阿合奇县| 平安县| 汤原县| 库尔勒市| 新竹县| 安溪县| 太湖县| 乌拉特前旗| 浦县| 丰都县| 香港| 文登市| 故城县| 博野县| 甘德县| 萝北县| 伊宁县| 平远县| 三穗县| 双流县| 方山县| 仁寿县| 隆林| 平昌县| 吉安县| 普兰县| 福建省| 中宁县| 依兰县| 泾川县| 电白县| 河北区| 金寨县|