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

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.

主站蜘蛛池模板: 宣威市| 博爱县| 榆林市| 寻乌县| 新田县| 元谋县| 纳雍县| 汉源县| 吉首市| 磴口县| 洛浦县| 武夷山市| 嘉兴市| 迁安市| 夏河县| 太康县| 唐山市| 阿图什市| 孟津县| 通州区| 靖安县| 卓资县| 恩平市| 历史| 三台县| 图们市| 灵丘县| 建始县| 晋城| 鹤山市| 六盘水市| 田东县| 彩票| 繁峙县| 南漳县| 乐至县| 比如县| 霸州市| 驻马店市| 旺苍县| 株洲县|