parent
02f1c1bdac
commit
213761b07c
13
README.md
13
README.md
@ -1,9 +1,20 @@
|
|||||||
# clickhouse-study
|
|
||||||
|
学习ClickHouse笔记
|
||||||
|
|
||||||
|
# 源码编译
|
||||||
|
|
||||||
编译命令
|
编译命令
|
||||||
|
|
||||||
```bash
|
```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
|
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
11
bad/README.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
本章列举对ClickHouse性能有影响的操作,主要从存储、查询方面来讲。
|
||||||
|
|
||||||
|
# 存储相关
|
||||||
|
|
||||||
|
## Nullable
|
||||||
|
|
||||||
|
使用`Nullable`类型会对性能产生负面影响,在设计数据库的时候要避免使用`Nullable`。
|
||||||
|
|
||||||
|
|
||||||
|
|
16
engine/README.md
Normal file
16
engine/README.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
|
||||||
|
表引擎详解
|
||||||
|
|
||||||
|
# MergeTree
|
||||||
|
|
||||||
|
## ReplacingMergeTree
|
||||||
|
|
||||||
|
|
||||||
|
## SummingMergeTree
|
||||||
|
|
||||||
|
# TinyLog
|
||||||
|
|
||||||
|
|
||||||
|
# Memory
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user