知识卡片
Hudi两种更新布局取舍
Hudi 的 Copy on Write 更新时改写基础列式文件,读路径较简单但写入较重;Merge on Read 先记录增量,读取时合并,适合频繁更新但会增加读时合并与压实压力。选择需按更新频率和查询时延测试。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Practical Lakehouse Architecture》第3章《Storage: The Heart of the Lakehouse》(源文件:_epub-src/OEBPS/ch03.html)
- 结论依据:原文对比 COW 改写文件与 MOR 增量日志及读取合并,Apache Hudi 文档也确认两种表类型的读写取舍。
- 原始内容:Hudi supports two types of tables: Copy On Write (COW) and Merge On Read (MOR). COW writes the entire Parquet file again, even for a single record change. Whenever the user performs any transaction, Hudi creates a new Parquet file consisting of all the records from previous versions plus the changes from that transaction. This