知识卡片
列存减少分析扫描
列式文件把同列值放在一起,分析查询只读取需要的列,且相近类型和重复值更易压缩。行式布局读取整行更方便;选型应看查询读取的列数和写入方式,而非断言列存总更快。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Practical Lakehouse Architecture》第3章《Storage: The Heart of the Lakehouse》(源文件:_epub-src/OEBPS/ch03.html)
- 结论依据:原文以商品表对比行式与列式布局,指出聚合只取少数列时列存可减少扫描并改善压缩。
- 原始内容:In the columnar format, the data is stored as columns on the physical storage. Table 3-3 shows how the data is stored (same product table from earlier example) based on its columns. Table 3-3. Columnar storage 22 12 3 keyboard headphone mobile case computer accessory computer accessory computer accessory For analytical queries, columnar storage helps