知识卡片
行列布局与访问形态
行存让同一记录的诸字段接近,按主键读取整行时通常少触及无关块。列存让同一字段跨记录连续,分析大量记录的少数列时可少读数据。连续的同类型值更便于按类型压缩,并能以向量指令批量计算。选布局时需同时看参与列数、覆盖行数和查询方式。
参见 [[列存怎样重组行]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 1. Introduction and Overview Column- Versus Row-Oriented DBMS · 查看原书依据
To decide whether to use a column- or a row-oriented store, you need to understand your access patterns. If the read data is consumed in records (i.e., most or all of the columns are requested) and
参考来源
- 位置:《Database Internals》Chapter 1. Introduction and Overview(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch01.html#idm46104533822760,段 76)
- 结论依据:原文把点查、范围读与整行消费关联,把大范围少量列和聚合指向列存。
- 原始内容:To decide whether to use a column- or a row-oriented store, you need to understand your access patterns. If the read data is consumed in records (i.e., most or all of the columns are requested) and