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

Discretely writable collections

While it's useful for records to be internally structured into discrete fields, a given property of a record isn't always a single value such as a string or an integer. One simple way to handle fields that contain collections of values is to serialize them using a format such as JSON and then save the serialized collection into a text field. However, in order to update collections stored in this way, the serialized data must be read from the database, decoded, modified, and then written back to the database in its entirety. If two clients try to perform this kind of modification to the same record concurrently, one of the updates will be overwritten by the other. For this reason, many databases offer built-in collection structures that can be discretely updated: values can be added to and removed from collections without reading and rewriting the entire collection. Cassandra is no exception, offering list, set, and map collections, and supporting operations such as append the number 3 to the end of this list. Neither the client nor Cassandra itself needs to read the current state of the collection in order to update it, meaning collection updates are also blazingly efficient.

主站蜘蛛池模板: 庆城县| 农安县| 新乡市| 陆良县| 贵州省| 尉氏县| 沽源县| 合山市| 迁安市| 肥城市| 紫云| 庆元县| 威信县| 六安市| 澄江县| 武山县| 和林格尔县| 静乐县| 星座| 桑植县| 宝坻区| 海淀区| 淮北市| 苍南县| 如东县| 武宁县| 贵港市| 定日县| 迁西县| 阜康市| 阿瓦提县| 翁牛特旗| 秀山| 夹江县| 盐边县| 临邑县| 明水县| 景洪市| 宁阳县| 农安县| 墨竹工卡县|