理解C-Store about column-oriented database

C-Store 使用列式存储(ROS)来高效管理数据,其中每个列文件按特定属性排序并压缩。新数据存储在未压缩的写优化存储(WOS)中,定期通过后台进程转移到ROS。投影是按相同属性排序的列组,通常至少有一个包含所有可用于查询的列。C-Store 不支持传统索引,但提供稀疏索引以快速访问列的物理页。更新操作被视为删除后插入,删除通过特殊‘删除列’记录。
摘要由CSDN通过智能技术生成
  • Overview

    In C-Store, the primary representation of data on disk is as a set of column files which is called “read optimized store (ROS)”.

    Each column-file contains data from one column, compressed using a column-specific compression mothod, and sorted accroding to some attribute in the table that the column belongs to.

    Newly loaded data is stored in a write-optimized store (WOS) where data is uncompressed and not vertically partitioned.

    Periodically, data is moved from the WOS into the ROS via a background “tuple mover” process, which sorts, compresses, and writes re-organized data to disk in a columnar form.

  • Projections

    Groups of columns sorted on the same attribute are referred to as “projections”;

    Typically there is at least one projection containing all columns that can be used to answer any query;

  • Index

    C-Store does not support secondary indices on tables

    A sparse index is a small tree-based index that stores the first value contained on each physical page of a column.

    理解physical page in Computer

  • No-overwrite

    C-Store uses a “no-overwrite” storage representation, where updates are treated as deletes followed by inserts.

    Deletes are processed by storing a special “delete column” that records the time every tuple was deleted.

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值