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

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.

主站蜘蛛池模板: 洞头县| 融水| 正安县| 仁寿县| 长顺县| 丹东市| 法库县| 九江县| 大安市| 农安县| 阿拉善盟| 武乡县| 筠连县| 虞城县| 长汀县| 西盟| 永德县| 邓州市| 余庆县| 西平县| 巴彦淖尔市| 丰县| 千阳县| 连江县| 乌兰县| 五大连池市| 尖扎县| 将乐县| 岳阳县| 万源市| 盐山县| 横峰县| 甘德县| 屏东市| 陇川县| 两当县| 巍山| 墨玉县| 沾益县| 临夏县| 钟山县|