From 8bbbc6ab788b227cd04f01bceb27a9ee210b1a5f Mon Sep 17 00:00:00 2001 From: zeekling Date: Wed, 31 May 2023 23:56:07 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a9aeed7..6b6af09 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ -# clickhouse-study + +学习ClickHouse笔记 + +# 源码编译 编译命令 -- 2.45.2 From 3c46abe6fe4c43a74c9dd5cf65e40cb05196f081 Mon Sep 17 00:00:00 2001 From: zeekling Date: Thu, 1 Jun 2023 00:17:15 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b6af09..2ed0317 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,6 @@ ```bash cmake .. -DCMAKE_CXX_COMPILER=`which clang++` -DCMAKE_C_COMPILER=`which clang` -DCMAKE_BUILD_TYPE=release -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON +ninja ``` - -- 2.45.2 From e286dab47fa30f4005ecae64130a7ef1f06aa3e7 Mon Sep 17 00:00:00 2001 From: zeekling Date: Thu, 1 Jun 2023 00:48:38 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ bad/README.md | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 bad/README.md diff --git a/README.md b/README.md index 2ed0317..aee8153 100644 --- a/README.md +++ b/README.md @@ -10,3 +10,7 @@ cmake .. -DCMAKE_CXX_COMPILER=`which clang++` -DCMAKE_C_COMPILER=`which clang` - 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`。 + + + -- 2.45.2 From faff386e2518c411800292d49ef5595dfb498a5b Mon Sep 17 00:00:00 2001 From: zeekling Date: Thu, 1 Jun 2023 00:55:36 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=A1=A8=E5=BC=95?= =?UTF-8?q?=E6=93=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- engine/README.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 engine/README.md diff --git a/engine/README.md b/engine/README.md new file mode 100644 index 0000000..b613a45 --- /dev/null +++ b/engine/README.md @@ -0,0 +1,5 @@ + +表引擎 + + + -- 2.45.2 From 7a85a1d22274ef61b04e649c829a961e7b77602b Mon Sep 17 00:00:00 2001 From: zeekling Date: Thu, 1 Jun 2023 01:16:23 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=A1=A8=E5=BC=95?= =?UTF-8?q?=E6=93=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- engine/README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/engine/README.md b/engine/README.md index b613a45..b055c98 100644 --- a/engine/README.md +++ b/engine/README.md @@ -1,5 +1,16 @@ -表引擎 +表引擎详解 + +# MergeTree + +## ReplacingMergeTree +## SummingMergeTree + +# TinyLog + + +# Memory + -- 2.45.2 From 98d7429db42c7ca139175069c5dd9598ace7909a Mon Sep 17 00:00:00 2001 From: zeekling Date: Thu, 1 Jun 2023 23:34:27 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AE=8C=E6=95=B4?= =?UTF-8?q?=E7=9A=84=E7=BC=96=E8=AF=91=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index aee8153..b2c7e46 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ 编译命令 ```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 ``` -- 2.45.2