cassandra压缩——从文档看,本质上也应该是在做块压缩

简介:

Compression 

Compression maximizes the storage capacity of Cassandra nodes by reducing the volume of data on disk and disk I/O, particularly for read-dominated workloads. Cassandra quickly finds the location of rows in the SSTable index and decompresses the relevant row chunks.

Write performance is not negatively impacted by compression in Cassandra as it is in traditional databases. In traditional relational databases, writes require overwrites to existing data files on disk. The database has to locate the relevant pages on disk, decompress them, overwrite the relevant data, and finally recompress. In a relational database, compression is an expensive operation in terms of CPU cycles and disk I/O. Because Cassandra SSTable data files are immutable (they are not written to again after they have been flushed to disk), there is no recompression cycle necessary in order to process writes. SSTables are compressed only once when they are written to disk. Writes on compressed tables can show up to a 10 percent performance improvement.

目录
打赏
0
0
0
0
64
分享
相关文章
|
10月前
|
C++文件格式深度解析:从底层结构到关键特性
C++文件格式深度解析:从底层结构到关键特性
481 3
C++文件格式深度解析:从底层结构到关键特性
稀疏矩阵的压缩与还原(Java实现)
稀疏矩阵的压缩与还原(Java实现)
238 0
稀疏矩阵的压缩与还原(Java实现)
Hive中的压缩技术是如何实现的?请解释其原理和常用压缩算法。
Hive中的压缩技术是如何实现的?请解释其原理和常用压缩算法。
97 0
请解释一下文档存储数据库的工作原理,并提供一个使用文档存储数据库的实际应用场景。
请解释一下文档存储数据库的工作原理,并提供一个使用文档存储数据库的实际应用场景。
149 0
针对存储排序文件过程中合并和压缩的算法LSM-Tree
LSM-Tree全称为Log-Structured Merge-Tree,日志结构合并树,它的架构分为内存部分和有序的磁盘部分,内存部分实现高速写,有序的磁盘部分实现高效查。
1016 0
针对存储排序文件过程中合并和压缩的算法LSM-Tree
4.1 打包和压缩的概念和区别
在讲解具体的归档命令和压缩命令之前,先来了解一下归档和压缩所各自代表的含义。
263 0
4.1 打包和压缩的概念和区别
Java字符串压缩(两种压缩方式)
第一种,只统计字符出现次数,比如aabcccccaaa,压缩成a5b1c5 思路:利用hashMap键的唯一性
1288 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等