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

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:

Developing a mental model for Cassandra

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.

主站蜘蛛池模板: 剑河县| 连南| 高州市| 搜索| 文水县| 哈尔滨市| 隆化县| 土默特左旗| 清丰县| 乌什县| 中山市| 澄迈县| 南宫市| 日照市| 贞丰县| 抚顺县| 杨浦区| 丹江口市| 洛南县| 明溪县| 稻城县| 保德县| 潢川县| 磐安县| 霍州市| 汽车| 桦川县| 贵溪市| 泉州市| 永清县| 砀山县| 乐平市| 葫芦岛市| 偃师市| 拜泉县| 盖州市| 沙田区| 天镇县| 邯郸市| 如皋市| 客服|