<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<w:document xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas" xmlns:cx="http://schemas.microsoft.com/office/drawing/2014/chartex" xmlns:cx1="http://schemas.microsoft.com/office/drawing/2015/9/8/chartex" xmlns:cx2="http://schemas.microsoft.com/office/drawing/2015/10/21/chartex" xmlns:cx3="http://schemas.microsoft.com/office/drawing/2016/5/9/chartex" xmlns:cx4="http://schemas.microsoft.com/office/drawing/2016/5/10/chartex" xmlns:cx5="http://schemas.microsoft.com/office/drawing/2016/5/11/chartex" xmlns:cx6="http://schemas.microsoft.com/office/drawing/2016/5/12/chartex" xmlns:cx7="http://schemas.microsoft.com/office/drawing/2016/5/13/chartex" xmlns:cx8="http://schemas.microsoft.com/office/drawing/2016/5/14/chartex" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:aink="http://schemas.microsoft.com/office/drawing/2016/ink" xmlns:am3d="http://schemas.microsoft.com/office/drawing/2017/model3d" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" mc:Ignorable="w14 w15 wp14">
<w:body><w:p><w:pPr><w:pStyle w:val="dingding-heading1" /></w:pPr><w:r><w:rPr><w:sz w:val="48" /><w:b w:val="1" /></w:rPr><w:t xml:space="preserve">ClickHouse建表引擎说明</w:t></w:r></w:p><w:p><w:pPr><w:pStyle w:val="dingding-heading1" /><w:spacing w:line="204.70588235294116" /></w:pPr><w:r><w:rPr><w:sz w:val="40" /><w:b w:val="1" /></w:rPr></w:r><w:r><w:drawing>
<wp:inline distT="0" distB="0" distL="0" distR="0">
<wp:extent cx="7096125" cy="6755783" />
<wp:effectExtent b="0" l="0" r="0" t="0" />
<wp:docPr id="1" name="image.png" />
<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:nvPicPr>
<pic:cNvPr id="1" name="" />
<pic:cNvPicPr />
</pic:nvPicPr>
<pic:blipFill>
<a:blip r:embed="rId4" />
<a:stretch />
</pic:blipFill>
<pic:spPr>
<a:xfrm rot="0">
<a:off x="0" y="0" />
<a:ext cx="7096125" cy="6755783" />
</a:xfrm>
<a:prstGeom prst="rect">
<a:avLst />
</a:prstGeom>
</pic:spPr>
</pic:pic>
</a:graphicData>
</a:graphic>
</wp:inline>
</w:drawing></w:r><w:r><w:rPr><w:sz w:val="40" /><w:b w:val="1" /></w:rPr></w:r></w:p><w:p><w:pPr /><w:r /></w:p><w:p><w:pPr><w:pStyle w:val="dingding-heading1" /><w:spacing w:line="204.70588235294116" /></w:pPr><w:r><w:rPr><w:sz w:val="40" /><w:b w:val="1" /></w:rPr></w:r></w:p><w:p><w:pPr><w:pStyle w:val="dingding-heading1" /><w:spacing w:line="204.70588235294116" /></w:pPr><w:r><w:rPr><w:sz w:val="40" /><w:b w:val="1" /></w:rPr><w:t xml:space="preserve">1.MergeTree</w:t></w:r></w:p><w:p><w:pPr /><w:r><w:t xml:space="preserve">在ClickHouse的整个体系里面,MergeTree表引擎绝对是一等公民,使用ClickHouse就是在使用MergeTree,这种说法一点也不为过。</w:t></w:r></w:p><w:p><w:pPr /><w:r><w:t xml:space="preserve">众所周知,MergeTree表引擎是一个家族系列,目前整个系列一共包含了14种不同类型的MergeTree,可谓是功能丰富了吧?</w:t></w:r></w:p><w:p><w:pPr /><w:r><w:t xml:space="preserve">但凡事都有两面性,功能丰富的同时也无疑让很多朋友犯了难。</w:t></w:r></w:p><w:p><w:pPr /><w:r><w:rPr><w:b w:val="1" /></w:rPr><w:t xml:space="preserve">这么多表引擎,它们之间是什么关系?</w:t></w:r></w:p><w:p><w:pPr><w:ind /><w:spacing /></w:pPr><w:r><w:rPr><w:b w:val="1" /></w:rPr><w:t xml:space="preserve">我们到底应该使用哪一种表引擎?</w:t></w:r></w:p><w:p><w:pPr><w:ind /><w:spacing /></w:pPr><w:r><w:t xml:space="preserve">老师常教导我们要训练结构化思维,通过抽象、归纳等办法来分析一个事物,有时候会起到事半功倍的效果。</w:t></w:r></w:p><w:p><w:pPr /><w:r><w:rPr><w:b w:val="1" /></w:rPr><w:t xml:space="preserve">这么多表引擎,它们之间是什么关系?</w:t></w:r></w:p><w:p><w:pPr><w:ind /><w:spacing /></w:pPr><w:r><w:t xml:space="preserve">我们可以使用两种关系,来理解整个MergeTree系列:</w:t></w:r></w:p><w:p><w:pPr><w:pStyle w:val="dingding-heading2" /><w:ind /><w:spacing w:line="204.70588235294116" /></w:pPr><w:r><w:rPr><w:sz w:val="32" /><w:b w:val="1" /></w:rPr><w:t xml:space="preserve">继承关系:</w:t></w:r></w:p><w:p><w:pPr><w:ind /><w:spacing /></w:pPr><w:r><w:t xml:space="preserve">首先,为了便于理解,可以使用继承关系来看待MergeTree。通过最基础的</w:t></w:r><w:r><w:rPr><w:b w:val="1" /></w:rPr><w:t xml:space="preserve">MergeTree</w:t></w:r><w:r><w:t xml:space="preserve">表引擎,向下派生出6个变种表引擎,如下图所示</w:t></w:r></w:p><w:p><w:pPr><w:ind /><w:spacing /></w:pPr><w:r /><w:r><w:drawing>
<wp:inline distT="0" distB="0" distL="0" distR="0">
<wp:extent cx="7096125" cy="1596628" />
<wp:effectExtent b="0" l="0" r="0" t="0" />
<wp:docPr id="2" name="image.png" />
<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:nvPicPr>
<pic:cNvPr id="1" name="" />
<pic:cNvPicPr />
</pic:nvPicPr>
<pic:blipFill>
<a:blip r:embed="rId5" />
<a:stretch />
</pic:blipFill>
<pic:spPr>
<a:xfrm rot="0">
<a:off x="0" y="0" />
<a:ext cx="7096125" cy="1596628" />
</a:xfrm>
<a:prstGeom prst="rect">
<a:avLst />
</a:prstGeom>
</pic:spPr>
</pic:pic>
</a:graphicData>
</a:graphic>
</wp:inline>
</w:drawing></w:r><w:r /></w:p><w:p><w:pPr /><w:r /></w:p><w:p><w:pPr /><w:r><w:t xml:space="preserve">在ClickHouse底层具体的实现方法中,上述7种表引擎的区别主要体现在</w:t></w:r><w:r><w:rPr><w:b w:val="1" /></w:rPr><w:t xml:space="preserve">Merge合并</w:t></w:r><w:r><w:t xml:space="preserve">的逻辑部分。如下图所示,是我简化后的对象关系:</w:t></w:r></w:p><w:p><w:pPr /><w:r /><w:r><w:drawing>
<wp:inline distT="0" distB="0" distL="0" distR="0">
<wp:extent cx="7096125" cy="3922580" />
<wp:effectExtent b="0" l="0" r="0" t="0" />
<wp:docPr id="3" name="image.png" />
<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:nvPicPr>
<pic:cNvPr id="1" name="" />
<pic:cNvPicPr />
</pic:nvPicPr>
<pic:blipFill>
<a:blip r:embed="rId6" />
<a:stretch />
</pic:blipFill>
<pic:spPr>
<a:xfrm rot=
Clickhouse调研说明文档
需积分: 5 171 浏览量
2023-05-18
14:04:16
上传
评论
收藏 4.38MB RAR 举报
gwd777
- 粉丝: 123
- 资源: 15
最新资源
- 电子万年历软件仿真(经过多次修改,保证正确性)
- Unity XR 手势射击控制脚本(适用于任何可手势识别的设备)
- 机械设计全自动电表(NB和IC卡表)控制和上壳装配线sw16可编辑非常好的设计图纸100%好用.zip
- 基于matlab的EAN-13条形码识别系统GUI界面.zip代码53
- matlab基于bp神经网络交通信号标志识别GUI界面13个标志.zip代码54
- 电子万年历答辩实物展示视频mp4格式
- 基于python实现的程序,包括哈希感知算法cvHash,图像切割cvsplit,固定目标检测cvRec(附文档ppt)等
- 计算0-10000之间所有偶数的和
- multiled.zip
- 基于php实现的哈希算法的人脸检索
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈