更新readme (#5)

修改点:
- 添加基本目录
- 添加编译命令
This commit is contained in:
LingZhaoHui 2023-06-01 15:48:07 +00:00
parent 02f1c1bdac
commit 213761b07c
3 changed files with 39 additions and 1 deletions

View File

@ -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)

11
bad/README.md Normal file
View File

@ -0,0 +1,11 @@
本章列举对ClickHouse性能有影响的操作主要从存储、查询方面来讲。
# 存储相关
## Nullable
使用`Nullable`类型会对性能产生负面影响,在设计数据库的时候要避免使用`Nullable`。

16
engine/README.md Normal file
View File

@ -0,0 +1,16 @@
表引擎详解
# MergeTree
## ReplacingMergeTree
## SummingMergeTree
# TinyLog
# Memory