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

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.

主站蜘蛛池模板: 安平县| 漳浦县| 万州区| 邯郸县| 桂平市| 庆安县| 太康县| 龙南县| 阿图什市| 马龙县| 桦南县| 宜春市| 射阳县| 邵武市| 社旗县| 保定市| 闵行区| 青阳县| 长岭县| 舟山市| 南皮县| 紫阳县| 白河县| 锡林浩特市| 嘉鱼县| 天台县| 高邮市| 芦山县| 古浪县| 彭州市| 凉山| 东安县| 顺义区| 和龙市| 格尔木市| 定州市| 治多县| 武山县| 昆明市| 惠东县| 崇左市|