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 + +