From 213761b07cbaa82ae81055ffef0f27005b324e0f Mon Sep 17 00:00:00 2001 From: zeekling Date: Thu, 1 Jun 2023 15:48:07 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme=20(#5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改点: - 添加基本目录 - 添加编译命令 --- README.md | 13 ++++++++++++- bad/README.md | 11 +++++++++++ engine/README.md | 16 ++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 bad/README.md create mode 100644 engine/README.md diff --git a/README.md b/README.md index a9aeed7..b2c7e46 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,20 @@ -# clickhouse-study + +学习ClickHouse笔记 + +# 源码编译 编译命令 ```bash +git clone git@github.com:ClickHouse/ClickHouse.git -b 23.4 +cd ClickHouse +git submodule update --init --recursive +mkdir build && cd build cmake .. -DCMAKE_CXX_COMPILER=`which clang++` -DCMAKE_C_COMPILER=`which clang` -DCMAKE_BUILD_TYPE=release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON +ninja ``` +# 性能优化 + +[性能变慢的因素](./bad/README.md) diff --git a/bad/README.md b/bad/README.md new file mode 100644 index 0000000..c81ed90 --- /dev/null +++ b/bad/README.md @@ -0,0 +1,11 @@ + +本章列举对ClickHouse性能有影响的操作,主要从存储、查询方面来讲。 + +# 存储相关 + +## Nullable + +使用`Nullable`类型会对性能产生负面影响,在设计数据库的时候要避免使用`Nullable`。 + + + diff --git a/engine/README.md b/engine/README.md new file mode 100644 index 0000000..b055c98 --- /dev/null +++ b/engine/README.md @@ -0,0 +1,16 @@ + +表引擎详解 + +# MergeTree + +## ReplacingMergeTree + + +## SummingMergeTree + +# TinyLog + + +# Memory + +