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

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.

主站蜘蛛池模板: 崇义县| 宾阳县| 阜城县| 墨江| 金昌市| 北海市| 南城县| 穆棱市| 大同县| 玛纳斯县| 新野县| 滦平县| 邓州市| 个旧市| 荥阳市| 澜沧| 福建省| 长沙市| 木里| 铁岭县| 忻城县| 邢台市| 绥棱县| 常熟市| 泰兴市| 波密县| 读书| 邵武市| 滕州市| 乐昌市| 宣化县| 望都县| 拉萨市| 旬阳县| 玛纳斯县| 博野县| 稻城县| 金溪县| 南京市| 五寨县| 抚顺县|