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

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.

主站蜘蛛池模板: 阿坝| 鹰潭市| 天镇县| 沙河市| 平邑县| 泾川县| 青浦区| 汉中市| 长丰县| 林周县| 塘沽区| 东源县| 双江| 桃江县| 苍梧县| 城固县| 疏附县| 连城县| 金溪县| 贡觉县| 高雄市| 塘沽区| 东台市| 三门县| 上思县| 深州市| 永昌县| 浮梁县| 贺兰县| 浦县| 宜黄县| 绥化市| 定兴县| 乌鲁木齐县| 乡城县| 延寿县| 徐闻县| 抚顺市| 荆州市| 都江堰市| 丰顺县|