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

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.

主站蜘蛛池模板: 桃园县| 贞丰县| 金堂县| 哈尔滨市| 滨海县| 工布江达县| 罗城| 临洮县| 聂荣县| 临桂县| 龙南县| 芷江| 荣昌县| 湛江市| 黑河市| 无极县| 修武县| 石河子市| 尉氏县| 临潭县| 包头市| 仪征市| 涟源市| 正定县| 云和县| 田林县| 定结县| 永吉县| 邳州市| 衡山县| 永顺县| 财经| 安庆市| 鄱阳县| 保康县| 东乡县| 德钦县| 徐闻县| 固安县| 米泉市| 资源县|