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

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.

主站蜘蛛池模板: 新密市| 阜康市| 枣庄市| 新竹县| 若羌县| 海门市| 吉隆县| 五常市| 喜德县| 萍乡市| 涡阳县| 富阳市| 航空| 永城市| 临江市| 鄂伦春自治旗| 道真| 越西县| 大田县| 山东| 湟源县| 即墨市| 乌拉特后旗| 怀安县| 临泽县| 兴安县| 金溪县| 江孜县| 台东市| 廉江市| 沽源县| 阿克陶县| 广丰县| 若尔盖县| 葫芦岛市| 蓝山县| 青铜峡市| 普陀区| 会泽县| 旅游| 白山市|